-
Notifications
You must be signed in to change notification settings - Fork 133
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 callback functionality for vertex insertation, triangle add/change #179
base: master
Are you sure you want to change the base?
Conversation
In cas C++ 11 is not available, its disabled
Hi Artem, |
Unfortunately, I have no spare time now. Life keeps me busy elsewhere. I will take a look as soon as I can, but cannot promise quick response. |
@@ -31,6 +31,10 @@ option(CDT_USE_STRONG_TYPING | |||
"If enabled uses strong typing for types: useful for development and debugging" | |||
OFF) | |||
|
|||
option(CDT_CALLBACK_DISABLED | |||
"If enabled a callbeack function can be registered if a triabngle is created or changed (>=C++11 necessary)" |
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.
There is a typo in triabngle
// C++11 required for std::fucntion callbacks | ||
#ifndef CDT_CALLBACK_DISABLED | ||
std::function<void(TriInd, CallbackType)> callback_tri; // callback function for triangle creation | ||
std::function<void(VertInd, CallbackType)> callback_vertex; // callback function for vertex insertation |
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.
It seems Triangulation class members follow m_memberName
naming style.
Naming style of callback_tri
and callback_vertex
makes members names inconsistent.
In case C++ 11 is not available, its disabled