|
Notes |
|
|
(0034981)
|
|
Andreas Buykx
|
|
2015-08-13 03:59
|
|
From code inspection in vtkContourHelper.cxx:
The Tris and TriOutCd members are initialized (lines 50-51) when GenerateTriangles evaluates to true, but they are used (lines 70-70) when GenerateTriangles evaluates to false. |
|
|
|
(0035000)
|
|
Andreas Buykx
|
|
2015-08-17 04:27
|
|
Hi,
I found out that the vtkPolygonBuilder is not capable of generating polygons from a triangle mesh with inner nodes. I have modified it to generate a proper polygon also from a triangle mesh with inner nodes. How do you want me to proceed with this? I can upload a diff, I suppose, or try and push it myself. I don't know what is the preferred or faster way (I'm not very familiar with git myself). Is it possible to get this fix included in 6.3? |
|
|
|
(0035001)
|
|
T.J. Corona
|
2015-08-17 06:23
(edited on: 2015-08-17 07:16) |
|
Hi Andreas,
I also came to the same conclusion, and have rewritten vtkPolygonBuilder to accept triangle meshes with inner nodes (see the following merge request: https://gitlab.kitware.com/vtk/vtk/merge_requests/541 [^]). The update is currently under review, and will hopefully be accepted before the end of the week.
-T.J.
|
|
|
|
(0035002)
|
|
Andreas Buykx
|
|
2015-08-17 06:42
|
|
|
OK. Does your implementation also address the situation where cutting a non-linear cell produces multiple unconnected polygons? |
|
|
|
(0035003)
|
|
T.J. Corona
|
|
2015-08-17 07:19
|
|
|
No, it does not (but I suppose it could). Can you come up with an instance (or, better yet, a test case) where cutting a single nonlinear cell would result in requiring this functionality? |
|
|
|
(0035004)
|
|
Andreas Buykx
|
|
2015-08-17 10:23
|
|
|
I uploaded a python script which has a linear hexahedron, and a quadratic hexahedron with concave top surface. The viewer window contains these on the left side. On the right side are vtkCutter outputs with GenerateTrianglesOn (top) and GenerateTrianglesOff (bottom). When I cut through the quadratic hexahedron, close to the top surface, I would expect disconnected cuts (like you see in the triangles output. |
|
|
|
(0035071)
|
|
T.J. Corona
|
|
2015-08-26 16:40
|
|
|