Outdated confusing projects

This commit is contained in:
Paolo Cignoni 2007-02-01 06:11:06 +00:00
parent a2439416b2
commit ee9dd66e6f
8 changed files with 0 additions and 561 deletions

View File

@ -1,24 +0,0 @@
#include <stdio.h>
#include<vcg/math/base.h>
#include<vcg/space/point3.h>
#include<vcg/space/point4.h>
#include<vcg/space/color4.h>
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;
}

View File

@ -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

View File

@ -1,137 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="smalltest"
ProjectGUID="{D33C33B0-8191-43E5-BBD8-357B631BE1BC}"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="C:\Documenti\sf"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/smalltest.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/smalltest.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="C:\Documenti\sf"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/smalltest.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath=".\main.cpp">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath="..\..\vcg\space\color4.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -1,88 +0,0 @@
#include <vcg/traced_vector.h>
#include <vcg/simple_temporary_data.h>
#include<vcg/space/point3.h>
#include<vcg/space/color4.h>
using namespace vcg;
#include <vcg/simplex/vertexplus/base.h>
#include<vcg/math/base.h>
class EdgeProto{};
class Vertex0 : public VertexSimp1< Vertex0,EdgeProto,vcg::vert::Coord3fOpt>{};
typedef TVector<Vertex0> TVect;
int main(){
int i;
// partial test for CORE DATA ***********
// put some vertex in a vector
TVector<Vertex0> c1;
for( i = 0; i < 10; i++)
c1.push_back(Vertex0());
c1.EnableAttribute<Vertex0::CoordType>();
// 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<Vertex0::CoordType>();
// *****************************************
// USER DATA
// si puo' fare in 2 modi: Se il container e'di tipo TVector (traced vector)
// si puo'usare
//(1) c.NewTempData<TIPO_ATTRIBUTO>(); 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<TVect,EntryCATMulti<TVect> >::Insert(c1); // questa riga sparira'
TempData<TVect,int> handle = c1.NewTempData<int>();
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<Vertex0> c;
for( i = 0; i < 10; i++)
c.push_back(Vertex0());
SimpleTempData<std::vector<Vertex0>,int> tmp(c);
tmp.Start();
tmp[&c[1]] = 22;
int hh = tmp[&c[1]];
tmp.Stop();
// **************************************
}

View File

@ -1,51 +0,0 @@
#include <vector>
#include<vcg/simplex/vertex/vertex.h>
#include<vcg/simplex/face/with/af.h>
#include<vcg/complex/trimesh/base.h>
// loader
#include<wrap/io_trimesh/import_ply.h>
// topology computation
#include<vcg/complex/trimesh/update/topology.h>
// half edge iterators
#include<vcg/simplex/face/pos.h>
using namespace vcg;
class MyFace;
class MyEdge;
class MyVertex:public Vertex<float,MyEdge,MyFace>{};
class MyFace :public FaceAF<MyVertex,MyEdge,MyFace>{};
class MyMesh: public tri::TriMesh< std::vector<MyVertex>, std::vector<MyFace > >{};
int main(int argc,char ** argv){
MyMesh m;
//load the mesh
vcg::tri::io::ImporterPLY<MyMesh>::Open(m,argv[1]);
//update the face-face topology
vcg::tri::UpdateTopology<MyMesh>::FaceFace(m);
// declare an iterator on the mesh
vcg::face::Pos<MyMesh::FaceType> 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();
}

View File

@ -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

View File

@ -1,137 +0,0 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="topology"
ProjectGUID="{9889985A-56A2-48DB-8CA8-52345904E8BD}"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="d:/sf"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/topology.exe"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/topology.pdb"
SubSystem="1"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="1"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="d:\sf"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="TRUE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/topology.exe"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath=".\main.cpp">
</File>
<File
RelativePath="..\..\..\wrap\ply\plylib.cpp">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -1,82 +0,0 @@
#pragma warning(disable : 4267)
#include <stdio.h>
#include <vector>
#include<vcg/math/base.h>
#include<vcg/space/point3.h>
#include<vcg/space/point4.h>
#include<vcg/space/color4.h>
#include<vcg/simplex/vertex/with/n.h>
#include<vcg/simplex/vertex/with/cn.h>
#include<vcg/simplex/face/with/fn.h>
#include<vcg/simplex/face/with/fafc.h>
#include<vcg/simplex/face/pos.h>
#include<vcg/complex/trimesh/base.h>
#include<vcg/complex/trimesh/platonic.h>
#include<vcg/complex/trimesh/update/flag.h>
#include<vcg/complex/trimesh/update/normal.h>
#include<vcg/complex/trimesh/update/topology.h>
#include<vcg/complex/trimesh/update/color.h>
#include<wrap/io_trimesh/export_stl.h>
#include<wrap/io_trimesh/import_ply.h>
#include<wrap/io_trimesh/import_stl.h>
#include<wrap/io_trimesh/export_ply.h>
using namespace vcg;
using namespace std;
//using namespace tri;
int main(int argc, char *argv[])
{
printf("Hello Library!\n");
VertexNf vnf;
VertexNd vnd;
FaceFN<VertexNf> fnf;
FaceFN<VertexNd> fnd;
typedef tri::TriMesh< vector<VertexCNf>, vector< FaceFAFC<VertexCNf> > > 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<VertexNf>) = %i \n",sizeof(FaceFN<VertexNf>));
//printf("Sizeof(FaceFA<VertexCNd>) = %i \n",sizeof(FaceFA<VertexCNd>));
typedef tri::TriMesh< vector<VertexNf>, vector< FaceFN<VertexNf> > > MyMesh;
MyMesh tm;
tri::Tetrahedron(tm);
tri::io::ExporterPLY<MyMesh>::Save(tm,"Tetrabin.ply");
tri::Octahedron(tm);
tri::io::ExporterPLY<MyMesh>::Save(tm,"Octbin.ply");
tri::Icosahedron(tm);
tri::io::ExporterPLY<MyMesh>::Save(tm,"Icobin.ply");
//tri::io::ExporterSTL<MyMesh>::Save(tm,"Tetra.stl",false);
//tri::io::ExporterPLY<MyMesh>::Save(tm,"Tetraascii.ply",false);
//tri::io::ExporterSTL<MyMesh>::Save(tm,"armawarp.stl",false);
//tri::UpdateNormals<MyMesh>::PerVertexNormalized(tm);
//tri::UpdateNormals<MyMesh>::PerFaceNormalized(tm);
//tri::UpdateNormals<MyMesh>::PerVertex(tm);
//tri::UpdateNormals<MyMesh>::PerFace(tm);
/*tri::io::ImporterPLY<MyMeshAdj>::Open(ta,"bigtest.ply");
printf("Loaded Mesh Has %i vn %i fn\n",ta.vn,ta.fn);
tri::UpdateTopology<MyMeshAdj>::FaceFace(ta);
tri::UpdateFlags<MyMeshAdj>::FaceBorderFromFF(ta);
tri::UpdateColor<MyMeshAdj>::FaceBF(ta);
tri::io::PlyInfo pi;
pi.mask=tri::io::PLYMask::PM_FACECOLOR;
tri::io::ExporterPLY<MyMeshAdj>::Save(ta,"color.ply",true, pi);*/
face::Pos<MyMeshAdj::FaceType> fp;
tri::io::ImporterSTL<MyMeshAdj>::Open(ta,"knotbin.stl");
tri::io::ExporterPLY<MyMeshAdj>::Save(ta,"knotbin.ply");
tri::io::ImporterSTL<MyMeshAdj>::Open(ta,"knotasc.stl");
tri::io::ExporterPLY<MyMeshAdj>::Save(ta,"knotasc.ply");
return 0;
}