00001 #include <simplex\vertex\with\a.h> 00002 #include <simplex\tetrahedron\with\avq.h> 00003 #include <simplex\face\with\fa.h> 00004 #include <complex\tetramesh\base.h> 00005 #include <complex\tetramesh\update\topology.h> 00006 #include <complex\tetramesh\update\allocate.h> 00007 #include<vector> 00008 #include<complex\tetramesh\update\triconvert.h> 00009 #include<complex\trimesh\base.h> 00010 using namespace vcg; 00011 using namespace tetra; 00012 using namespace tri; 00013 #include<apps\test\tetramesh\test\myclasses.h> 00014 00015 int main( int argc, char **argv ) 00016 { 00017 MyMesh tm=MyMesh(); 00018 UpdateTopology<vector<MyVertex>,vector<MyTetrahedron> > ut= UpdateTopology<vector<MyVertex>,vector<MyTetrahedron> >(); 00019 Allocator<MyMesh> All= Allocator<MyMesh>(); 00020 vector<MyVertex **> local_var=vector<MyVertex **>(); 00021 char* filename="sphere.ts"; 00022 tm.LoadTs(filename,1); 00023 ut.TTTopology(tm.vert,tm.tetra); 00024 ut.TestTTTopology(tm.vert,tm.tetra); 00025 ut.VTTopology(tm.vert,tm.tetra); 00026 All.AddVertices(tm,10,local_var); 00027 All.AddVertices(tm,10); 00028 ut.TestTTTopology(tm.vert,tm.tetra); 00029 MyTriMesh mesh; 00030 TriConverter <MyMesh,MyTriMesh>tric=TriConverter<MyMesh,MyTriMesh>(); 00031 tric.Convert(tm,mesh); 00032 }