Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plugin-Topology
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenFlipper-Free
Plugin-Topology
Commits
031a23b3
Commit
031a23b3
authored
5 years ago
by
Max Lyon
Browse files
Options
Downloads
Patches
Plain Diff
check if is_collapse_ok before collapsing an edge of a polymesh
parent
e13fbbaf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TopologyPlugin.cc
+3
-3
3 additions, 3 deletions
TopologyPlugin.cc
with
3 additions
and
3 deletions
TopologyPlugin.cc
+
3
−
3
View file @
031a23b3
...
...
@@ -734,12 +734,12 @@ void TopologyPlugin::collapse_edge(QMouseEvent* _event) {
if
(
(
hit_point
-
to
).
sqrnorm
()
>
(
hit_point
-
from
).
sqrnorm
()
)
closest_edge
=
m
.
opposite_halfedge_handle
(
closest_edge
);
//
if ( m.is_collapse_ok(closest_edge) ){
if
(
m
.
is_collapse_ok
(
closest_edge
)
){
// m.point(m.to_vertex_handle(closest_edge)) = hit_point;
m
.
collapse
(
closest_edge
);
m
.
garbage_collection
();
//
} else
//
emit log(LOGERR,"Collapse is not allowed here!");
}
else
emit
log
(
LOGERR
,
"Collapse is not allowed here!"
);
emit
log
(
LOGOUT
,
"Picked Edge "
+
QString
::
number
(
closest_edge
.
idx
()));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment