MantisBT - VTK
View Issue Details
0011504VTK(No Category)public2010-11-24 09:392016-08-12 09:55
Gerald Lodron 
David Partyka 
normalmajoralways
closedmoved 
64 bitWindows 7 Prof
 
 
0011504: Rendering 2D Polygons and cutting 2D Poligons
2 Errors:

Visualization of Polygon not correct: Mismatch between surface (press 's') and wireframe visualization (press 'w'), see first rendering in main.cpp of the two attatched polgons (.vtk files)

Cutting (vtkCutter) of one of them does not work (see second visualization)

Compile main.cpp using latest vtk and change line 23:

oReader->SetFileName("C:\\TestRectangelWithSpike.vtk");

with your file path to the two attatched vtk datas. In the first visualization press s and w and compare visualization
The file "TestRectangelWithSpike.vtk" implements a polygon with a spike, here the vtkCutter fails. Also the rendering is not correct.

The file "TestRectangelWithoutSpike.vtk" is a normal konkave polygon, the surface and wireframemode looks different, vtkCutter works

No tags attached.
rar Bugtest.rar (1,453) 2010-11-24 09:39
https://www.vtk.org/Bug/file/8521/Bugtest.rar
jpg DonutWithKeyhole.jpg (185,215) 2011-04-19 04:13
https://www.vtk.org/Bug/file/8826/DonutWithKeyhole.jpg
jpg
Issue History
2010-11-24 09:39Gerald LodronNew Issue
2010-11-24 09:39Gerald LodronFile Added: Bugtest.rar
2010-11-24 10:17Gerald LodronNote Added: 0023527
2011-04-14 07:45David PartykaAssigned To => David Partyka
2011-04-14 07:45David PartykaStatusbacklog => tabled
2011-04-18 03:22Gerald LodronNote Added: 0026209
2011-04-19 03:35Gerald LodronNote Added: 0026222
2011-04-19 04:13Gerald LodronFile Added: DonutWithKeyhole.jpg
2011-04-19 04:13Gerald LodronNote Added: 0026223
2013-07-22 20:33Dave DeMarleStatusbacklog => expired
2013-07-22 20:33Dave DeMarleNote Added: 0031287
2016-08-12 09:55Kitware RobotNote Added: 0037213
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved

Notes
(0023527)
Gerald Lodron   
2010-11-24 10:17   
ok i debugged it to line 1277 of vtkPolygon:

The difference between the data sets is in function

  success = this->EarCutTriangulation();

the success returns false if there are any peaks in the datasets
(0026209)
Gerald Lodron   
2011-04-18 03:22   
Also check out result of vtkCutter when using such a polygon:

0,0
1,1
0,2
-1,3
0,4
1,3
0,2
-1,1
0,0
(0026222)
Gerald Lodron   
2011-04-19 03:35   
ok in general the problem is not caused by peaks:

the problem appears if the boundaries "touch" each other, e.g. a donout polygon drawn with a single polygon which has a key hole for connecting outher to inner:

0,0
10,0
10,10
0,10
0,0
1,1
1,9
9,9
9,1
1,1
(0026223)
Gerald Lodron   
2011-04-19 04:13   
see DonutWithKeyhole.jpg for my donut example
(0031287)
Dave DeMarle   
2013-07-22 20:33   
Dave P no longer works on the project. If these old issues still exist in 6.0.0, reopen them and assign to Dave DeMarle
(0037213)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.