From ee9dd66e6fb84a7344325d6b1dc4ffaf0f11b7ea Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 1 Feb 2007 06:11:06 +0000 Subject: [PATCH] Outdated confusing projects --- apps/test/base/main.cpp | 24 ----- apps/test/base/smalltest.sln | 21 ----- apps/test/base/smalltest.vcproj | 137 ----------------------------- apps/test/dataopt/main.cpp | 88 ------------------ apps/test/topology/main.cpp | 51 ----------- apps/test/topology/topology.sln | 21 ----- apps/test/topology/topology.vcproj | 137 ----------------------------- apps/test/trimesh/main.cpp | 82 ----------------- 8 files changed, 561 deletions(-) delete mode 100644 apps/test/base/main.cpp delete mode 100644 apps/test/base/smalltest.sln delete mode 100644 apps/test/base/smalltest.vcproj delete mode 100644 apps/test/dataopt/main.cpp delete mode 100644 apps/test/topology/main.cpp delete mode 100644 apps/test/topology/topology.sln delete mode 100644 apps/test/topology/topology.vcproj delete mode 100644 apps/test/trimesh/main.cpp diff --git a/apps/test/base/main.cpp b/apps/test/base/main.cpp deleted file mode 100644 index ecf3a4a3..00000000 --- a/apps/test/base/main.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include -#include -#include -#include -#include - -using namespace vcg; - -int main(int argc, char *argv[]) -{ - printf("Hello Library!\n"); - Point3f pp0(0,1,2); - Point3f pp1(2,1,0); - Point3f pp2=pp1+pp0; - Point3i ppi=Point3i::Construct(pp1+pp0); - - Point4i size(0,0,1,1); - - Color4b cb(Color4b::LightBlue); - Color4f cf(Color4f::LightBlue); - Color4b cbi; cbi.Import(cf); - printf("ci %i %i %i %i\n",cbi.V(0),cbi.V(1),cbi.V(2),cbi.V(3)); - return -1; -} \ No newline at end of file diff --git a/apps/test/base/smalltest.sln b/apps/test/base/smalltest.sln deleted file mode 100644 index acbd1b1d..00000000 --- a/apps/test/base/smalltest.sln +++ /dev/null @@ -1,21 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 8.00 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "smalltest", "smalltest.vcproj", "{D33C33B0-8191-43E5-BBD8-357B631BE1BC}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfiguration) = preSolution - Debug = Debug - Release = Release - EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {D33C33B0-8191-43E5-BBD8-357B631BE1BC}.Debug.ActiveCfg = Debug|Win32 - {D33C33B0-8191-43E5-BBD8-357B631BE1BC}.Debug.Build.0 = Debug|Win32 - {D33C33B0-8191-43E5-BBD8-357B631BE1BC}.Release.ActiveCfg = Release|Win32 - {D33C33B0-8191-43E5-BBD8-357B631BE1BC}.Release.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution - EndGlobalSection -EndGlobal diff --git a/apps/test/base/smalltest.vcproj b/apps/test/base/smalltest.vcproj deleted file mode 100644 index c2ed78bc..00000000 --- a/apps/test/base/smalltest.vcproj +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/test/dataopt/main.cpp b/apps/test/dataopt/main.cpp deleted file mode 100644 index 039b0624..00000000 --- a/apps/test/dataopt/main.cpp +++ /dev/null @@ -1,88 +0,0 @@ -#include -#include - - -#include -#include -using namespace vcg; -#include -#include - - -class EdgeProto{}; -class Vertex0 : public VertexSimp1< Vertex0,EdgeProto,vcg::vert::Coord3fOpt>{}; - -typedef TVector TVect; -int main(){ -int i; - -// partial test for CORE DATA *********** - // put some vertex in a vector - TVector c1; - - for( i = 0; i < 10; i++) - c1.push_back(Vertex0()); - - c1.EnableAttribute(); - - // put some more vertex inthe vector - for( i= 0; i < 10; i++) - c1.push_back(Vertex0()); - - c1[2].P()=Point3f(1.0,2,3); - Point3f p = c1[2].P(); - - // drop the attributes - c1.DisableAttribute(); -// ***************************************** - - -// USER DATA -// si puo' fare in 2 modi: Se il container e'di tipo TVector (traced vector) -// si puo'usare -//(1) c.NewTempData(); che si occupa di resizare -// i container di dati temporanei (cioe' riflette tutte le push_back,reserve,resize -// eventualemnte fatte sul vettore). NewTempoData resituisce una handle per accedere -// al dato. - -// (2) si usa SimpleTempData che e' come uno tranne che non supporta automaticamente -// le variazioni di dimensione -// del vettore (si puo' fare a mano pero')...s - -// partial test for USER DATA *********** -// modo (1) - - for( i = 0; i < 10; i++) - c1.push_back(Vertex0()); - - CATEntry >::Insert(c1); // questa riga sparira' - - TempData handle = c1.NewTempData(); - handle[&c1[3]] = 71; - // put some more vertex inthe vector - for( i = 0; i < 10; i++) - c1.push_back(Vertex0()); - int h = handle[&c1[3]]; - c1.DeleteTempData(handle); -// ***************************************** - - -// partial test for USER DATA *********** -// modo (2) - - std::vector c; - for( i = 0; i < 10; i++) - c.push_back(Vertex0()); - - SimpleTempData,int> tmp(c); - tmp.Start(); - tmp[&c[1]] = 22; - int hh = tmp[&c[1]]; - tmp.Stop(); -// ************************************** - - - } - - - diff --git a/apps/test/topology/main.cpp b/apps/test/topology/main.cpp deleted file mode 100644 index c7514b41..00000000 --- a/apps/test/topology/main.cpp +++ /dev/null @@ -1,51 +0,0 @@ -#include - -#include - -#include - -#include - -// loader -#include - -// topology computation -#include - -// half edge iterators -#include - - - -using namespace vcg; - -class MyFace; -class MyEdge; -class MyVertex:public Vertex{}; -class MyFace :public FaceAF{}; -class MyMesh: public tri::TriMesh< std::vector, std::vector >{}; - - -int main(int argc,char ** argv){ - - MyMesh m; - - //load the mesh - vcg::tri::io::ImporterPLY::Open(m,argv[1]); - - //update the face-face topology - vcg::tri::UpdateTopology::FaceFace(m); - - // declare an iterator on the mesh - vcg::face::Pos he; - - // set as the half edge: (first face of the mesh, edge 0,vertex 0) - he.Set(&*m.face.begin(),0,(*m.face.begin()).V(0)); - - // same vertex and edge..adjacent face - he.FlipF(); - //again (it went back..it it manifold) - he.FlipF(); - - } - diff --git a/apps/test/topology/topology.sln b/apps/test/topology/topology.sln deleted file mode 100644 index b8ba76d2..00000000 --- a/apps/test/topology/topology.sln +++ /dev/null @@ -1,21 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 8.00 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "topology", "topology.vcproj", "{9889985A-56A2-48DB-8CA8-52345904E8BD}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfiguration) = preSolution - Debug = Debug - Release = Release - EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {9889985A-56A2-48DB-8CA8-52345904E8BD}.Debug.ActiveCfg = Debug|Win32 - {9889985A-56A2-48DB-8CA8-52345904E8BD}.Debug.Build.0 = Debug|Win32 - {9889985A-56A2-48DB-8CA8-52345904E8BD}.Release.ActiveCfg = Release|Win32 - {9889985A-56A2-48DB-8CA8-52345904E8BD}.Release.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution - EndGlobalSection -EndGlobal diff --git a/apps/test/topology/topology.vcproj b/apps/test/topology/topology.vcproj deleted file mode 100644 index 71e07807..00000000 --- a/apps/test/topology/topology.vcproj +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/test/trimesh/main.cpp b/apps/test/trimesh/main.cpp deleted file mode 100644 index 0810c742..00000000 --- a/apps/test/trimesh/main.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#pragma warning(disable : 4267) -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -using namespace vcg; -using namespace std; -//using namespace tri; - -int main(int argc, char *argv[]) -{ - printf("Hello Library!\n"); - - VertexNf vnf; - VertexNd vnd; - - FaceFN fnf; - FaceFN fnd; - - - typedef tri::TriMesh< vector, vector< FaceFAFC > > MyMeshAdj; - MyMeshAdj ta; - - printf("Sizeof(VertexNf) = %i (%i + %i + %i)\n",sizeof(VertexNf),sizeof(Point3f),sizeof(int),sizeof(Point3f)); - printf("Sizeof(VertexNd) = %i (%i + %i + %i) \n",sizeof(VertexNd),sizeof(Point3d),sizeof(int),sizeof(Point3d)); - printf("Sizeof(FaceFN) = %i \n",sizeof(FaceFN)); - //printf("Sizeof(FaceFA) = %i \n",sizeof(FaceFA)); - - typedef tri::TriMesh< vector, vector< FaceFN > > MyMesh; - MyMesh tm; - tri::Tetrahedron(tm); - tri::io::ExporterPLY::Save(tm,"Tetrabin.ply"); - tri::Octahedron(tm); - tri::io::ExporterPLY::Save(tm,"Octbin.ply"); - tri::Icosahedron(tm); - tri::io::ExporterPLY::Save(tm,"Icobin.ply"); - - //tri::io::ExporterSTL::Save(tm,"Tetra.stl",false); - //tri::io::ExporterPLY::Save(tm,"Tetraascii.ply",false); - //tri::io::ExporterSTL::Save(tm,"armawarp.stl",false); - //tri::UpdateNormals::PerVertexNormalized(tm); - //tri::UpdateNormals::PerFaceNormalized(tm); - //tri::UpdateNormals::PerVertex(tm); - //tri::UpdateNormals::PerFace(tm); - - /*tri::io::ImporterPLY::Open(ta,"bigtest.ply"); - printf("Loaded Mesh Has %i vn %i fn\n",ta.vn,ta.fn); - tri::UpdateTopology::FaceFace(ta); - tri::UpdateFlags::FaceBorderFromFF(ta); - tri::UpdateColor::FaceBF(ta); - tri::io::PlyInfo pi; - pi.mask=tri::io::PLYMask::PM_FACECOLOR; - tri::io::ExporterPLY::Save(ta,"color.ply",true, pi);*/ - - face::Pos fp; - - tri::io::ImporterSTL::Open(ta,"knotbin.stl"); - tri::io::ExporterPLY::Save(ta,"knotbin.ply"); - - tri::io::ImporterSTL::Open(ta,"knotasc.stl"); - tri::io::ExporterPLY::Save(ta,"knotasc.ply"); - - return 0; -} \ No newline at end of file