[vtkusers] Use Mesh Subdivision on VTP files

Bryn Lloyd blloyd at vision.ee.ethz.ch
Mon Feb 23 03:08:26 EST 2009


Hi David,

1) creating triangle strips and then running triangulate again should 
get you back to the original situation. Nothing gained!


2) what do mean by "absolutely ridiculous triangles" ?
   a) are they disconnected?
   b) are there holes?
   c) are they too small?
   d) ...


3) how did you obtain the triangles? what does you polydata file look 
like. Maybe you could try with a simple example, e.g. two triangles:

# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS 4 float
0 0 0 1 0 0 1 1 0
0 1 0
POLYGONS 2 8
3 0 1 2
3 0 2 3




-Bryn





David Doria wrote:
> I have a polydata with a bunch of vtkTriangles. I want to smooth the 
> mesh, so in paraview I tried the subdivide filter, but it produces 
> absolutely ridiculous triangles. So I thought this meant the 
> connectivity information was wrong? So I tried the TriangleStrips filter 
> and then the subdivide filter, but now the subdivide filter complains 
> that there are no triangles. I tried triangulate and then subdivide and 
> I get the same mess as in the first case.
> 
> In all cases, the LoopSubdivision filter simply crashes. There is 
> clearly still something wrong with my understanding of these file 
> formats and which filters can be used on which types of files. Can 
> anyone clarify this for me?
> 
> Thanks,
> 
> David
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------



More information about the vtkusers mailing list