Problem: Text not aligned
This commit is contained in:
parent
678ac8a700
commit
730c9a68bd
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.5 2005/09/30 13:29:40 rita_borgo
|
||||||
|
Fixed Manifold Test
|
||||||
|
|
||||||
Revision 1.4 2005/09/29 14:48:15 rita_borgo
|
Revision 1.4 2005/09/29 14:48:15 rita_borgo
|
||||||
Fixed code related to creation of the XML file
|
Fixed code related to creation of the XML file
|
||||||
|
|
||||||
|
@ -199,13 +202,18 @@ static int DuplicateVertex( MyMesh & m ) // V1.0
|
||||||
ans.clear();
|
ans.clear();
|
||||||
return deleted;
|
return deleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void main(int argc,char ** argv){
|
void main(int argc,char ** argv){
|
||||||
|
|
||||||
|
|
||||||
MyMesh m;
|
MyMesh m;
|
||||||
bool DEBUG = true;
|
bool DEBUG = true;
|
||||||
|
int k;
|
||||||
|
k=3;
|
||||||
|
int j;
|
||||||
|
j=0;
|
||||||
|
cout<<"Punto 1"<<endl;
|
||||||
/*------------XML file part ------------------*/
|
/*------------XML file part ------------------*/
|
||||||
|
|
||||||
static char* XML_SCHEMA_NAME = "protegekb";
|
static char* XML_SCHEMA_NAME = "protegekb";
|
||||||
|
@ -213,6 +221,7 @@ void main(int argc,char ** argv){
|
||||||
MainNode* mn = new MainNode;
|
MainNode* mn = new MainNode;
|
||||||
|
|
||||||
/*--------------------------------------------*/
|
/*--------------------------------------------*/
|
||||||
|
cout<<"Punto 2"<<endl;
|
||||||
|
|
||||||
//load the mesh
|
//load the mesh
|
||||||
//argv[1]=(char*)"c:\\checkup\\debug\\column1m.ply";
|
//argv[1]=(char*)"c:\\checkup\\debug\\column1m.ply";
|
||||||
|
@ -226,6 +235,7 @@ void main(int argc,char ** argv){
|
||||||
" release date: "__DATE__"\n"
|
" release date: "__DATE__"\n"
|
||||||
"-------------------------------\n\n");
|
"-------------------------------\n\n");
|
||||||
|
|
||||||
|
cout<<"Punto 3"<<endl;
|
||||||
|
|
||||||
if(DEBUG)
|
if(DEBUG)
|
||||||
argv[1] = "C:\\sf\\apps\\msvc\\trimeshinfo\\Release\\tests\\kite_hole3.ply";
|
argv[1] = "C:\\sf\\apps\\msvc\\trimeshinfo\\Release\\tests\\kite_hole3.ply";
|
||||||
|
@ -239,10 +249,12 @@ void main(int argc,char ** argv){
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cout<<"Punto 4"<<endl;
|
||||||
|
|
||||||
|
|
||||||
OpenMesh(argv[1],m);
|
OpenMesh(argv[1],m);
|
||||||
|
|
||||||
|
cout<<"Punto 5"<<endl;
|
||||||
|
|
||||||
|
|
||||||
/*------------XML file part ------------------*/
|
/*------------XML file part ------------------*/
|
||||||
|
@ -269,6 +281,7 @@ void main(int argc,char ** argv){
|
||||||
printf("\t Number of faces: %d \n", m.fn);
|
printf("\t Number of faces: %d \n", m.fn);
|
||||||
|
|
||||||
|
|
||||||
|
cout<<"Punto 6"<<endl;
|
||||||
|
|
||||||
/*------------XML file part ------------------*/
|
/*------------XML file part ------------------*/
|
||||||
NodeGroup* ng = new NodeGroup;
|
NodeGroup* ng = new NodeGroup;
|
||||||
|
@ -302,6 +315,7 @@ void main(int argc,char ** argv){
|
||||||
ng->addNode(osn);
|
ng->addNode(osn);
|
||||||
/*--------------------------------------------*/
|
/*--------------------------------------------*/
|
||||||
|
|
||||||
|
cout<<"Punto 7"<<endl;
|
||||||
|
|
||||||
|
|
||||||
if(m.HasPerFaceColor()||m.HasPerVertexColor())
|
if(m.HasPerFaceColor()||m.HasPerVertexColor())
|
||||||
|
@ -327,10 +341,7 @@ void main(int argc,char ** argv){
|
||||||
/*--------------------------------------------*/
|
/*--------------------------------------------*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cout<<"Punto 8"<<endl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vcg::tri::UpdateTopology<MyMesh>::FaceFace(m);
|
vcg::tri::UpdateTopology<MyMesh>::FaceFace(m);
|
||||||
|
|
||||||
// IS MANIFOLD
|
// IS MANIFOLD
|
||||||
|
@ -341,11 +352,11 @@ void main(int argc,char ** argv){
|
||||||
|
|
||||||
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
||||||
(*fi).ClearS();
|
(*fi).ClearS();
|
||||||
|
|
||||||
int cf=0;
|
int cf=0;
|
||||||
bool Manifold = true;
|
bool Manifold=true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int j =0 ;
|
|
||||||
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
for(fi=m.face.begin();fi!=m.face.end();++fi)
|
||||||
{
|
{
|
||||||
for (j=0;j<3;j++)
|
for (j=0;j<3;j++)
|
||||||
|
@ -367,6 +378,7 @@ void main(int argc,char ** argv){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!Manifold)
|
if (!Manifold)
|
||||||
{
|
{
|
||||||
fprintf(index, "<p> Manifold: NO </p>");
|
fprintf(index, "<p> Manifold: NO </p>");
|
||||||
|
|
Loading…
Reference in New Issue