Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
c7b64add
Commit
c7b64add
authored
May 03, 2016
by
Max Limper
Browse files
Copy per-halfedge and per-face properties to new elments during triangulation
parent
50994e81
Pipeline
#1582
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Mesh/PolyConnectivity.cc
View file @
c7b64add
...
...
@@ -1032,6 +1032,7 @@ void PolyConnectivity::triangulate(FaceHandle _fh)
HalfedgeHandle
base_heh
(
halfedge_handle
(
_fh
));
VertexHandle
start_vh
=
from_vertex_handle
(
base_heh
);
HalfedgeHandle
prev_heh
(
prev_halfedge_handle
(
base_heh
));
HalfedgeHandle
next_heh
(
next_halfedge_handle
(
base_heh
));
while
(
to_vertex_handle
(
next_halfedge_handle
(
next_heh
))
!=
start_vh
)
...
...
@@ -1051,6 +1052,10 @@ void PolyConnectivity::triangulate(FaceHandle _fh)
set_face_handle
(
next_heh
,
new_fh
);
set_face_handle
(
new_heh
,
new_fh
);
copy_all_properties
(
prev_heh
,
new_heh
,
true
);
copy_all_properties
(
prev_heh
,
opposite_halfedge_handle
(
new_heh
),
true
);
copy_all_properties
(
_fh
,
new_fh
,
true
);
base_heh
=
opposite_halfedge_handle
(
new_heh
);
next_heh
=
next_next_heh
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment