From 46488a5dd1c532d6f44504762eea3659dc81c3ac Mon Sep 17 00:00:00 2001 From: Philip Trettner <Philip.Trettner@rwth-aachen.de> Date: Fri, 18 Sep 2020 11:51:16 +0200 Subject: [PATCH] fixed collapse comment --- src/polymesh/ranges.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/polymesh/ranges.hh b/src/polymesh/ranges.hh index f445262..9a6b7be 100644 --- a/src/polymesh/ranges.hh +++ b/src/polymesh/ranges.hh @@ -435,9 +435,11 @@ struct halfedge_collection : smart_collection<Mesh*, halfedge_tag, iterator> /// O(valence) computation [[deprecated("use pm::are_adjacent instead")]] bool exists(vertex_handle v_from, vertex_handle v_to) const; - /// Collapsed the given half-edge by removing it, keeping the to_vertex, and creating new triangles + /// Collapsed the given half-edge by removing it, keeping the to_vertex /// Preserves half-edge properties but not face or vertex ones - /// Similar to a vertex collapse of the `from` vertex with triangulation towards `to` + /// This function never creates, only deletes faces, edges, vertices (depending on case) + /// NOTE: this should work for all topologies as long as the result is manifold + /// can be checked with pm::can_collapse(h) void collapse(halfedge_handle h) const; /// Splits this half-edge in half by inserting a vertex (which is returned) -- GitLab