[vtkusers] Why vtkTriangleFilter does not work ?
bxb1280
bxb1280 at sina.com
Fri Sep 12 05:56:25 EDT 2003
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
More information about the vtkusers
mailing list