Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'extern/carve/lib/intersect.cpp')
-rw-r--r--extern/carve/lib/intersect.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/extern/carve/lib/intersect.cpp b/extern/carve/lib/intersect.cpp
index b468e4addc7..8e377664748 100644
--- a/extern/carve/lib/intersect.cpp
+++ b/extern/carve/lib/intersect.cpp
@@ -407,6 +407,17 @@ void carve::csg::CSG::Hooks::resultFace(const meshset_t::face_t *new_face,
}
}
+void carve::csg::CSG::Hooks::edgeDivision(const meshset_t::edge_t *orig_edge,
+ size_t orig_edge_idx,
+ const meshset_t::vertex_t *v1,
+ const meshset_t::vertex_t *v2) {
+ for (std::list<Hook *>::iterator j = hooks[EDGE_DIVISION_HOOK].begin();
+ j != hooks[EDGE_DIVISION_HOOK].end();
+ ++j) {
+ (*j)->edgeDivision(orig_edge, orig_edge_idx, v1, v2);
+ }
+}
+
void carve::csg::CSG::Hooks::registerHook(Hook *hook, unsigned hook_bits) {
for (unsigned i = 0; i < HOOK_MAX; ++i) {
if (hook_bits & (1U << i)) {