[vtk-developers] UnstructuredGrid result datas are diffrent if use VTK_TRIANGLE and VTK_TETRA

David E DeMarle dave.demarle at kitware.com
Mon Jul 30 09:38:18 EDT 2012


If you post a small compilable/runnable code sample and two small ascii vtk
data files, the list can better understand and assist you.

My understanding is that you are making one model consisting of triangles
and another, which has the same geometry, consisting of tetrahedra. In that
case I expect the volume would be different. The triangle one, containing
only infinitely thin triangles should have a volume of zero. My guess as to
why they look different is that the ordering for some of the cells you are
making is incorrect.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Mon, Jul 30, 2012 at 3:59 AM, ALI HADIMOGULLARI <
ali.hadimogullari at netcad.com.tr> wrote:

>  I have already created solid model and I want to create a copy of the
> solid model.  I used to two vtk type,  VTK_TRIANGLE and VTK_TETRA ****
>
> ** **
>
> for the first type has been used ;****
>
> before select my solid model after get cell and get point metod add new
> cell  add point0 , point1  ,point2, point3  ****
>
> ** **
>
> cell.Points.AddRange(point0, point1, point2);****
>
> cell.Points.AddRange(point0, point1, point3);****
>
> cell.Points.AddRange(point0, point2, point3);****
>
> cell.Points.AddRange(point1, point2, point3);****
>
> ** **
>
> for the scond VTK_TETRA type use metod****
>
> cell.Points.AddRange(point0, point1, point2, point3);****
>
> ** **
>
> There are two models differ in some parts of each and volume calc value is
> different. what is the vtk logic? and Why different drawing some parts of
> each?****
>
>    *ALI HADIMOGULLARI
> **YAZILIM UZMANI*
> ali.hadimogullari at netcad.com.tr
>
>
> Cyber Park B Blok No:409
> 06800, Bilkent / Ankara
> *Tel. :*(312) 265 0510 - 201
> *Faks: *0(312) 265 0520
>
>
>
>  <http://www.netcad.com.tr/>
> *ULUSAL CAD ve GIS
> ÇÖZÜMLERİ A.Ş.*
> www.netcad.com.tr
>
> <http://www.netcad.com.tr/konferans/>
>
>
>
>
> .****
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120730/9742e969/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo349a.jpg
Type: image/jpeg
Size: 2880 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120730/9742e969/attachment.jpg>


More information about the vtk-developers mailing list