View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015582 | VTK | (No Category) | public | 2015-07-15 02:07 | 2015-08-26 16:40 | ||||
Reporter | Andreas Buykx | ||||||||
Assigned To | T.J. Corona | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | 6.3.0 | |||||||
Summary | 0015582: vtkCutter produces incorrect polygons when cutting non-linear cells | ||||||||
Description | vtkCutter can be set to generate polygons instead of triangles. It produces incorrect polygons when cutting through non-linear cells. Linear cells seem to be cut ok. I include a python script and a vtu file that demonstrate the issue, the result of which is shown in the image file. | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | image.png [^] (12,304 bytes) 2015-07-15 02:07
input.vtu [^] (7,446 bytes) 2015-07-15 02:08 cutter.py [^] (1,719 bytes) 2015-07-15 02:08 cutPolygons.py [^] (2,885 bytes) 2015-08-17 10:19 | ||||||||
Relationships | |
Relationships |
Notes | |
(0034981) Andreas Buykx (reporter) 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 (reporter) 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 (developer) 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 (reporter) 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 (developer) 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 (reporter) 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 (developer) 2015-08-26 16:40 |
The fix can be found in the following commit: https://gitlab.kitware.com/vtk/vtk/commit/7ed37e9603105db4da600e2d2a65c7b18a50bf2a [^] Thanks for your help with this issue! |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-07-15 02:07 | Andreas Buykx | New Issue | |
2015-07-15 02:07 | Andreas Buykx | File Added: image.png | |
2015-07-15 02:08 | Andreas Buykx | File Added: input.vtu | |
2015-07-15 02:08 | Andreas Buykx | File Added: cutter.py | |
2015-08-13 03:59 | Andreas Buykx | Note Added: 0034981 | |
2015-08-13 17:30 | T.J. Corona | Assigned To | => T.J. Corona |
2015-08-17 04:27 | Andreas Buykx | Note Added: 0035000 | |
2015-08-17 06:23 | T.J. Corona | Note Added: 0035001 | |
2015-08-17 06:42 | Andreas Buykx | Note Added: 0035002 | |
2015-08-17 07:16 | T.J. Corona | Note Edited: 0035001 | |
2015-08-17 07:19 | T.J. Corona | Note Added: 0035003 | |
2015-08-17 10:19 | Andreas Buykx | File Added: cutPolygons.py | |
2015-08-17 10:23 | Andreas Buykx | Note Added: 0035004 | |
2015-08-26 16:40 | T.J. Corona | Note Added: 0035071 | |
2015-08-26 16:40 | T.J. Corona | Status | backlog => closed |
2015-08-26 16:40 | T.J. Corona | Resolution | open => fixed |
2015-08-26 16:40 | T.J. Corona | Fixed in Version | => 6.3.0 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |