Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Madrich
Copy link

@Madrich Madrich commented May 12, 2024

In case C++ 11 is not available, its disabled

In cas C++ 11 is not available, its disabled
@Madrich
Copy link
Author

Madrich commented May 20, 2024

Hi Artem,
Can you please review my merge request? Like to finish it.

@artem-ogre
Copy link
Owner

Hi Artem, Can you please review my merge request? Like to finish it.

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.

@artem-ogre artem-ogre linked an issue Jun 20, 2024 that may be closed by this pull request
@@ -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)"
Copy link

@chemodansama chemodansama Oct 12, 2024

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
Copy link

@chemodansama chemodansama Oct 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Callbacks
3 participants