-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add stop button for AW3 demo #7500
Conversation
No changes to existing oracles as AW3's oracles use a shared ptr to AABB Tree
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have compile and tried the plugin, and reviewed as much code as possible. It seems fine. I have two minor comments.
void emit_status() | ||
{ | ||
Q_EMIT status_report(QString("%1 vertices").arg(wrapper.triangulation().number_of_vertices())); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the only place where I might see an issue. But the Mesh_3 plugin has the same: the timer is created and started in the main thread, so this slot will be called by the main thread. The call wrapper.triangulation().number_of_vertices()
is not thread-safe. However, the only consequence I can see is a possible incoherent number of vertices during one iteration of the slot.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is related to the macro CGAL_CONCURRENT_COMPACT_CONTAINER_APPROXIMATE_SIZE
from PR #4389.
Polyhedron/demo/Polyhedron/Plugins/Alpha_wrap_3/Alpha_wrap_3_plugin.cpp
Outdated
Show resolved
Hide resolved
Successfully tested in CGAL-6.0-Ic-1 |
Add stop button for AW3 demo
Successfully tested in CGAL-6.0-Ic-15 |
Release Management
Polyhedron
,Alpha_wrap_3