From a24e269ac421f616242c020d49770578049b1eb1 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Thu, 29 Jun 2006 13:25:46 +0000 Subject: [PATCH] Aggiunto namespace tetra, cambiato riferimento a puntatore --- wrap/gl/tetramesh.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/wrap/gl/tetramesh.h b/wrap/gl/tetramesh.h index 60afbf9c..a4859427 100644 --- a/wrap/gl/tetramesh.h +++ b/wrap/gl/tetramesh.h @@ -10,6 +10,7 @@ namespace vcg { +namespace tetra { class GLW { public: @@ -146,9 +147,10 @@ public: }; - GlTetramesh(CONT_TETRA & _t):tetra(_t){} + GlTetramesh(CONT_TETRA * _t):tetra(_t){} + GlTetramesh( ) {} - CONT_TETRA & tetra; + CONT_TETRA * tetra; ClipPlane section; private: @@ -212,7 +214,7 @@ template section.GlDraw(); } /*glBegin(GL_TRIANGLES);*/ - for( it = tetra.begin(); it != tetra.end(); ++it) + for( it = tetra->begin(); it != tetra->end(); ++it) if((!it->IsD())&&(!(it->IsS()))) //draw as normal { _DrawSmallTetra(*it); @@ -260,7 +262,7 @@ void _DrawSurface(){ glPolygonMode(GL_FRONT,GL_FILL); } //glBegin(GL_TRIANGLES); - for( it = tetra.begin(); it != tetra.end(); ++it) + for( it = tetra->begin(); it != tetra->end(); ++it) _DrawTetra((*it)); //glEnd(); glPopAttrib(); @@ -431,5 +433,6 @@ void _DrawSmallTetra(TetraType &t) }; -} +} // end namespace tetra +} // end nemaspace tri #endif \ No newline at end of file