Minor changes to self-intersection
This commit is contained in:
parent
2f8bd5c457
commit
6c82c844b5
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.7 2005/02/07 15:44:31 rita_borgo
|
||||||
|
Fixed Color and Volume
|
||||||
|
|
||||||
Revision 1.6 2005/02/01 17:37:53 rita_borgo
|
Revision 1.6 2005/02/01 17:37:53 rita_borgo
|
||||||
Fixed Volume and Color
|
Fixed Volume and Color
|
||||||
|
|
||||||
|
@ -158,7 +161,7 @@ void main(int argc,char ** argv){
|
||||||
|
|
||||||
char *fmt;
|
char *fmt;
|
||||||
MyMesh m;
|
MyMesh m;
|
||||||
bool DEBUG = true;
|
bool DEBUG = false;
|
||||||
//load the mesh
|
//load the mesh
|
||||||
//argv[1]=(char*)"c:\\checkup\\debug\\column1m.ply";
|
//argv[1]=(char*)"c:\\checkup\\debug\\column1m.ply";
|
||||||
//argv[1] = "C:\\sf\\apps\\msvc\\trimeshinfo\\Release\\prism.off";
|
//argv[1] = "C:\\sf\\apps\\msvc\\trimeshinfo\\Release\\prism.off";
|
||||||
|
@ -627,6 +630,17 @@ void main(int argc,char ** argv){
|
||||||
fprintf(index, "<p> Oriented Mesh: NO</p>");
|
fprintf(index, "<p> Oriented Mesh: NO</p>");
|
||||||
printf( "\t Oriented Mesh: NO\n");
|
printf( "\t Oriented Mesh: NO\n");
|
||||||
}
|
}
|
||||||
|
int dv = DuplicateVertex(m);
|
||||||
|
if(dv>0)
|
||||||
|
{
|
||||||
|
fprintf(index, "<p> Duplicated vertices: %d</p>", dv);
|
||||||
|
printf( "\t Duplicated vertices: %d\n",dv);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fprintf(index, "<p> Duplicated vertices: NO</p>");
|
||||||
|
printf( "\t Duplicated vertices: NO\n");
|
||||||
|
}
|
||||||
// SELF INTERSECTION
|
// SELF INTERSECTION
|
||||||
|
|
||||||
if (m.fn<300000)
|
if (m.fn<300000)
|
||||||
|
@ -659,18 +673,8 @@ void main(int argc,char ** argv){
|
||||||
printf( "\t Self Intersection: NO\n");
|
printf( "\t Self Intersection: NO\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int dv = DuplicateVertex(m);
|
|
||||||
if(dv>0)
|
|
||||||
{
|
|
||||||
fprintf(index, "<p> Duplicated vertices: %d</p>", dv);
|
|
||||||
printf( "\t Duplicated vertices: %d\n",dv);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
fprintf(index, "<p> Duplicated vertices: NO</p>");
|
|
||||||
printf( "\t Duplicated vertices: NO\n");
|
|
||||||
}
|
|
||||||
fclose(index);
|
fclose(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue