From 20f49352f17ff4a9381aa5f2ce6b4122589d527f Mon Sep 17 00:00:00 2001 From: ganovelli Date: Tue, 1 Jun 2004 17:17:29 +0000 Subject: [PATCH] pragma once removed , load ts removed to be put in io_tetramesh CLear() added --- vcg/complex/tetramesh/base.h | 63 +++++++----------------------------- 1 file changed, 11 insertions(+), 52 deletions(-) diff --git a/vcg/complex/tetramesh/base.h b/vcg/complex/tetramesh/base.h index d425cfa1..86701d1a 100644 --- a/vcg/complex/tetramesh/base.h +++ b/vcg/complex/tetramesh/base.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.5 2004/05/13 12:16:12 pietroni +first version... add vertex to mesh + Revision 1.4 2004/05/13 07:41:47 turini Chenged #include in #include @@ -44,7 +47,6 @@ Revision 1.1 2004/04/15 08:54:20 pietroni #pragma warning( disable : 4804 ) -#pragma once #ifndef __VCG_TETRAMESH #define __VCG_TETRAMESH @@ -161,6 +163,13 @@ class Tetramesh{ { return sizeof(TMTYPE)+sizeof(VertexType)*vert.size()+sizeof(tetrahedron)*tetra.size()+sizeof(edge)*edges.size(); } + + void Clear(){ + vert.clear(); + tetra.clear(); + tn = 0; + vn = 0; + } //@} /***********************************************/ @@ -210,56 +219,6 @@ static bool HasTopology() { return HasTTTopology() || HasVTTopology(); } } //@} - - -void LoadTs(char * filename, double meshscale ) -{ - int nvertex; - int ntetra; - float x; - float y; - float z; - int tp0; - int tp1; - int tp2; - int tp3; - float mass; - FILE *f; - Tetramesh::VertexType p1; - f = fopen(filename,"r"); - if(f == NULL ) - printf( "The file was not opened\n" ); - else - { - fscanf(f, "%i", &nvertex ); - fscanf(f, "%i", &ntetra ); - int j; - for (j=0;j