diff --git a/vcg/complex/allocate.h b/vcg/complex/allocate.h index 25486233..2d48ed03 100644 --- a/vcg/complex/allocate.h +++ b/vcg/complex/allocate.h @@ -346,6 +346,17 @@ public: ei->V(1)=v1; return ei; } + + /** Function to add a single edge to the mesh. and initializing it with two indexes to the vertexes + */ + static EdgeIterator AddEdge(MeshType &m, size_t v0, size_t v1) + { + assert(v0!=v1); + assert(v0>=0 && v0=0 && v1=0 && v0<=m.vert.size()); - assert(v1>=0 && v1<=m.vert.size()); - assert(v2>=0 && v2<=m.vert.size()); + assert(v0>=0 && v0=0 && v1=0 && v2