-
Notifications
You must be signed in to change notification settings - Fork 1.5k
optimal_convex_partition_2 fails with very simple polygon #8828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
TBC if duplicate of #2575 |
I tried greene_approx_convex_partition_2, and it worked with that paricular data, but failed with: std::vector vec2 = {256, 3072, 129.41, 3009.41, 448, 3008, 496, 3136, 496, 3160, 496, 3304, 496, 3328, |
This time the failure is |
There is CGAL_PARTITION_NO_POSTCONDITIONS, but when set, code wont compile - whole CGAL::Partition is fundamentally broken and should not be used? |
This comment has been minimized.
This comment has been minimized.
|
Sorry where do you see duplicate points? How much I try I cannot spot them: |
My bad. But there is a missing comma after -384 on the first line of points. |
I still have the assertion after adding the missing comma. Sorry for the fast closing. |
My example code had a missing comma after -384, <-- It was lost when edited here, sorry. Now the example should show the fail condition correctly. @sloriot, Im sorry about confusion |
Issue Details
CGAL error: precondition violation!
Expression : is_simple_2(first, last, traits)
File : /opt/homebrew/include/CGAL/Polygon_2/Polygon_2_algorithms_impl.h
Line : 542
Explanation:
Refer to the bug-reporting instructions at https://www.cgal.org/bug_report.html
libc++abi: terminating due to uncaught exception of type CGAL::Precondition_exception: CGAL ERROR: precondition violation!
Expr: is_simple_2(first, last, traits)
File: /opt/homebrew/include/CGAL/Polygon_2/Polygon_2_algorithms_impl.h
Line: 542
Source Code
void test(){
}
Environment
The text was updated successfully, but these errors were encountered: