You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: I encountered that issue while working on CDT_3. My data set was not 2D, but as the triangulation is built incrementally, segment by segment, if the the first loaded segments are in the xy-plane, I have that issue. That is not a blocker bug.
Actually no: this issue is the leftover of #7438. Everything is fixed but the 2D case. At the time, @afabri told us not to address the 2D case in the same workload as #7535. That is still to be done.
Issue Details
With a 2D triangulation, the class
Triangulation_segment_cell_iterator_3
does not work, and crashes.Source Code
See the full code at https://gist.github.com/lrineau/d2002ee2044502a8200ad49de6dc7058. Extract:
There is a self-contained
.cpp
file, andCMakeLists.txt
file. The.cpp
loads a pre-existing 2DTriangulation_3<Epick>
object, that is valid.There is also a
![Screenshot_20221220_160747](https://user-images.githubusercontent.com/5746675/208699105-8d60c433-13e0-42cc-a894-39524fb1a3e8.png)
.js
file to load with the CGAL 3D demo, to load that scene:The black lines are a triangulation in the plane z==0, and the red line is the query segment for
Triangulation_segment_cell_iterator_3
.In the following picture, the visited cells, are:
[1, 2, 3, 4]
and then a crash:But the correct cell sequence should be
[2, 3, 5, 6]
.The problem seems in
void Triangulation_segment_cell_iterator_3<Tr,Inc>::walk_to_next_2()
.The text was updated successfully, but these errors were encountered: