[vtkusers] problem about vtkFeatureEdges...
lab_zj
lab_zj at 163.com
Wed Jan 14 20:59:44 EST 2009
When apply vtkFeatureEdges to a dataset that has been processed by vtkPolyDataNormals or others, then the
result seems not expected:
vtkPolyData *pointset=myFunctionCreatePointSet();
vtkDelaunay2D *del=vtkDelaunay2D::New();
del->SetInput(pointset);
vtkPolyDataNormals *nrms=vtkPolyDataNormals::New();
nrms->SetInputConnect(del->GetOutputPort());
vtkSmoothPolyDataFilter *sf=vtkSmoothPolyDataFilter::New();
sf->SetInputConnect(nrms->GetOutputPort());
/* Here, only input connected to del when results is correct.
because when display tb, many edges it not "BoundaryEdges".
that is vtkPolyDataNormals or vtkSmoothPolyDataFilter has changed
the topology of Delaunay mesh. So how to avoid this problem?
I only want to get BoundaryEdges, just using del as input?
*/
vtkFeatureEdges *fe=vtkFeatureEdges::New();
fe->SetInputConnect(sf->GetOutputPort());
fe->BoundaryEdgesOn();
fe->FeatureEdgesOff();
fe->ManifoldEdgesOff();
fe->NonManifoldEdgesOff();
fe->ColoringOff();
vtkTubeFilter *tb=vtkTubeFilter::New();
tb->SetInputConnect(fe->GetOutputPort());
tb->SetRadius(0.5);
tb->SetNumberOfSides(6);
// mapper tb and display...
... ...
lab_zj
2009-01-15
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090115/c90d2897/attachment.htm>
More information about the vtkusers
mailing list