Commit ca7abc7e by Janis Born

request mesh element status in MidpointT subdivision and fix a possible infinite loop

1 parent 3dd0d209
Pipeline #4150 for ca7abc7e passed in 50 minutes 50 seconds
......@@ -47,6 +47,10 @@ protected: // SubdividerT interface
//! @note The _update_points option is ignored
bool subdivide(mesh_t& _m, size_t _n, const bool _update_points = true)
{
_m.request_halfedge_status();
_m.request_edge_status();
_m.request_vertex_status();
_m.request_face_status();
PropertyManager<EPropHandleT<typename mesh_t::VertexHandle>, mesh_t> edge_midpoint(_m, "edge_midpoint");
PropertyManager<VPropHandleT<bool>, mesh_t> is_original_vertex(_m, "is_original_vertex");
......@@ -90,6 +94,7 @@ protected: // SubdividerT interface
_m.delete_vertex(vh);
}
}
_m.garbage_collection();
}
return true;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!