stl 原图

vtk Edges 边缘_c++

vtkFeatureEdges

vtkNew<vtkFeatureEdges> featureEdges;
featureEdges->SetInputData(mStlPolyData);
featureEdges->BoundaryEdgesOn();
featureEdges->FeatureEdgesOn();
featureEdges->ManifoldEdgesOff();
featureEdges->NonManifoldEdgesOff();
featureEdges->ColoringOn();
featureEdges->Update();

vtk Edges 边缘_c++_02

vtkExtractEdges

vtkNew<vtkExtractEdges> extractEdges;
extractEdges->SetInputData(mStlPolyData);
extractEdges->Update();

vtk Edges 边缘_c++_03