Hello at all,
i have a problem slicing vtkPolyData, and i am stuck there for days now.
I tried the following two pipelines.
first with vtkContourTriangulator:
-
vtkCleanPolyData
-
vtkCutter
-
vtkStripper
-
vtkContourTriangulator
-
vtkFeatureEdges
-
vtkStripper
-
vtkPolyDataNormals
second with vtkContourLoopExtraction:
-
vtkCleanPolyData
-
vtkCutter
-
vtkStripper
-
vtkContourLoopExtraction
-
vtkStripper
-
vtkPolyDataNormals
- Problem with the vtkContourTriangulator is, that it produce errors on some layers. Even when changing the tolerance of the vtkCleanPolyData then on other layers errors appear.
I also looked at the points from the vtkStripper output and they are definitely on the same layer.
So i dont know what to do? I also could check if the vtkContourTriangulator had an error, if so change the polygon minimal until it didnt has any error, but i dont know if this is a good solution, such an iterative try and error thing…
CPP-File and CMake and vtp-file:
CMakeLists.txt (755 Bytes)
contourTriangulatorTest.cxx (5.6 KB)
bd.vtp (154.0 KB)
- The problem with the vtkContourLoopExtraction is, that sometimes when more than one, lets say polygons are resulted from a cut, the orientation of them is sometimes wrong.
CPP-File and CMake and vtp-file:
CMakeLists.txt (830 Bytes)
contourLoopExtractorTest.cxx (5.4 KB)
bd2.vtp (10.1 KB)
Or are there filters which could check the correct winding of a polygon if it is inside another or something like that?
Any help is welcome,
best regards
new pony