[vtkusers] Why vtkTriangleFilter does not work ?

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Fri Sep 12 13:55:48 EDT 2003


kenny wang,

	Maybe you can try this class: vtkFeatureEdges (before
vtkTriangleFilter) to select particular cells and decide wether wou want
to keep them or not:

http://www.vtk.org/doc/nightly/html/classvtkFeatureEdges.html

HTH
mathieu

bxb1280 wrote:
> Drear All:
>   I use the following steps to generate the "pure" triangle meshes from 
> 3d vtkImageData, but found that there are serveral lines in the polydata.
> 
>  vtkmarchingcubes->SetInput(vtkImageData->Getoutput());
>  vtkTriangleFilter->SetInput(vtkmarchingcubes->Getoutput());
>  vtkTriangleFilter->PassVertsOff();
>  vtkTriangleFilter->PassLinesOff();
>  vtkQuadricDecimation->SetInput(vtkTriangleFilter->Getoutput());
>  vtkCleanPolyData->SetInput(vtkQuadricDecimation->Getoutput());
>  vtkTriangleFilter->SetInput(vtkCleanPolyData->Getoutput());
>  vtkTriangleFilter->PassVertsOff();
>  vtkTriangleFilter->PassLinesOff();
>  ...save the data to files
> 
> the document said there should no lines and vertices in triangle meshes 
> if setting the PassLinesOff() and PassVertsOff(),but it does not work at all!
> I use Ansys software to import the polydata, it said "the line 18 is used 1 times,
> please check the data" 
> Can anybody tell me how to obtain the "pure" triangle meshes?,that is no additional 
> lines and vertices in the mesh.
>  Thanks a lot!
> 
> kenny wang
>  				
>               bxb1280
>               bxb1280 at sina.com
>                  2003-09-12
> 
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


-- 
Mathieu Malaterre
CREATIS
28 Avenue du Doyen LEPINE
B.P. Lyon-Montchat
69394 Lyon Cedex 03
http://www.creatis.insa-lyon.fr/~malaterre/




More information about the vtkusers mailing list