addtetra corrected

This commit is contained in:
ganovelli 2004-07-09 10:20:21 +00:00
parent 336a9145bb
commit 985d986623
1 changed files with 16 additions and 4 deletions

View File

@ -24,11 +24,19 @@
History History
$Log: not supported by cvs2svn $ $Log: not supported by cvs2svn $
Revision 1.4 2004/06/01 17:12:46 ganovelli
addVertices corrected (two copies instead of specializing te call)
and put static (also addTetra) * g++ compliant *
Revision 1.3 2004/05/31 16:01:56 pietroni Revision 1.3 2004/05/31 16:01:56 pietroni
added function addtetra added function addtetra
Revision 1.2 2004/05/14 15:14:34 turini Revision 1.2 2004/05/14 15:14:34 turini
Added $Log: not supported by cvs2svn $ Added $Log: not supported by cvs2svn $
Added Revision 1.4 2004/06/01 17:12:46 ganovelli
Added addVertices corrected (two copies instead of specializing te call)
Added and put static (also addTetra) * g++ compliant *
Added
Added Revision 1.3 2004/05/31 16:01:56 pietroni Added Revision 1.3 2004/05/31 16:01:56 pietroni
Added added function addtetra Added added function addtetra
Added for CVS History Log Added for CVS History Log
@ -174,10 +182,14 @@ struct InsertedVT{
*/ */
static TetraIterator AddTetra(TetraMeshType &m,int n) static TetraIterator AddTetra(TetraMeshType &m,int n)
{ {
TetraIterator last=m.tetra.end(); unsigned int sz = m.tetra.size();
for (int i=0;i<n;i++) m.tetra.resize(sz+n);
m.tetra.push_back(TetraType());
return (last); TetraIterator ti =m.tetra.begin();
advance(ti,sz);
m.tn+=n;
return ti;
} }
/** Crate a copy of the mesh with tetrahedron that are into the templated container /** Crate a copy of the mesh with tetrahedron that are into the templated container