mirror of https://github.com/CGAL/cgal
rename function
This commit is contained in:
parent
7d48af6689
commit
e116cb5d46
|
|
@ -1126,12 +1126,12 @@ public:
|
|||
&& num_faces() == number_of_removed_faces());
|
||||
}
|
||||
|
||||
/// removes all vertices, halfedge, edges and faces. Collects garbage but keeps all properties.
|
||||
void remove_all_simplices();
|
||||
/// removes all vertices, halfedge, edges and faces. Collects garbage but keeps all property maps.
|
||||
void clear_without_removing_property_maps();
|
||||
|
||||
/// removes all vertices, halfedge, edges and faces. Collects garbage and clears all properties.
|
||||
/// removes all vertices, halfedge, edges and faces. Collects garbage and remove all property maps added by a call to `add_property_map()` for all simplex types.
|
||||
///
|
||||
/// After calling this method, the object is the same as a newly constructed object. The additional properties (such as normal vectors) are also removed and must thus be re-added if needed.
|
||||
/// After calling this method, the object is the same as a newly constructed object. The additional property maps are also removed and must thus be re-added if needed.
|
||||
void clear();
|
||||
|
||||
|
||||
|
|
@ -2863,7 +2863,7 @@ clear()
|
|||
template <typename P>
|
||||
void
|
||||
Surface_mesh<P>::
|
||||
remove_all_simplices()
|
||||
clear_without_removing_property_maps()
|
||||
{
|
||||
|
||||
vprops_.resize(0);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ int main()
|
|||
|
||||
{
|
||||
Sm::Property_map<Sm::Vertex_index, Point_3> vpm = m.points();
|
||||
m.remove_all_simplices();
|
||||
m.clear_without_removing_property_maps();
|
||||
assert( m.points().data() == vpm.data() );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue