add a return type and an argument in copy_tds

This commit is contained in:
Mariette Yvinec 1998-11-30 17:46:03 +00:00
parent cde99ebcff
commit 5199e9dd6f
1 changed files with 8 additions and 3 deletions

View File

@ -722,13 +722,15 @@ public:
public:
void copy_tds(const Tds &tds)
Vertex* copy_tds(const Tds &tds, Vertex* vert = NULL)
// returns the new vertex corresponding to vert in the new tds
{
map< void*, void*, less<void*> > V;
map< void*, void*, less<void*> > F;
Vertex* v2;
Face* f2;
clear();
int n = tds.number_of_vertices();
_number_of_vertices = tds.number_of_vertices();
@ -737,7 +739,7 @@ public:
_dimension = tds.dimension();
if(n == 0){ return ; }
if(n == 0){ return NULL; }
{
Vertex_iterator it=tds.vertices_begin();
@ -788,7 +790,10 @@ public:
}
CGAL_triangulation_postcondition( is_valid() );
return;
if ( vert != NULL ) {
return (Vertex*) V[vert];
}
else return NULL;
}