Added a couple of methods to enable more efficient adding of batches of vertices.

This commit is contained in:
Hans-Christian Ebke
2015-12-20 23:07:54 +01:00
parent 011fdc9700
commit 8ece0770a3
4 changed files with 42 additions and 0 deletions

View File

@@ -203,9 +203,19 @@ public:
return vh;
}
inline VertexHandle new_vertex_dirty(const Point& _p)
{
VertexHandle vh(Kernel::new_vertex_dirty());
this->set_point(vh, _p);
return vh;
}
inline VertexHandle add_vertex(const Point& _p)
{ return new_vertex(_p); }
inline VertexHandle add_vertex_dirty(const Point& _p)
{ return new_vertex_dirty(_p); }
// --- normal vectors ---
/** \name Normal vector computation