*** empty log message ***
This commit is contained in:
parent
9b09f1a95c
commit
729f141ef2
|
@ -31,7 +31,7 @@ class MyEdge; // dummy prototype never used
|
||||||
class MyFace;
|
class MyFace;
|
||||||
class MyVertex;
|
class MyVertex;
|
||||||
|
|
||||||
class MyVertex : public VertexSimp2< MyVertex, MyEdge, MyFace, vert::Coord3f, vert::Normal3f, vert::BitFlags >{};
|
class MyVertex : public VertexSimp2< MyVertex, MyEdge, MyFace, vert::Coord3f, vert::Normal3f, vert::BitFlags, vert::Mark>{};
|
||||||
class MyFace : public FaceSimp2 < MyVertex, MyEdge, MyFace, face::VertexRef, face::Normal3f, face::BitFlags > {};
|
class MyFace : public FaceSimp2 < MyVertex, MyEdge, MyFace, face::VertexRef, face::Normal3f, face::BitFlags > {};
|
||||||
class MyMesh : public vcg::tri::TriMesh< vector<MyVertex>, vector<MyFace> > {};
|
class MyMesh : public vcg::tri::TriMesh< vector<MyVertex>, vector<MyFace> > {};
|
||||||
|
|
||||||
|
@ -52,15 +52,15 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
float radius = 1.0f;
|
float radius = 1.0f;
|
||||||
float clustering = 0.05;
|
float clustering = 0.05;
|
||||||
float crease =
|
int i = 3;
|
||||||
while(i<argc)
|
while(i<argc)
|
||||||
{
|
{
|
||||||
if(argv[i][0]!='-')
|
if(argv[i][0]!='-')
|
||||||
{printf("Error unable to parse option '%s'\n",argv[i]); exit(0);}
|
{printf("Error unable to parse option '%s'\n",argv[i]); exit(0);}
|
||||||
switch(argv[i][1])
|
switch(argv[i][1])
|
||||||
{
|
{
|
||||||
case 'r' : radius = atof(argv[i+1]); printf("Using %f sphere radius\n",radius); break;
|
case 'r' : radius = atof(argv[++i]); printf("Using %f sphere radius\n",radius); break;
|
||||||
case 'c' : clustering = atof(argv[i+1]); printf("Using %f clustering radius\n",clustering); break;
|
case 'c' : clustering = atof(argv[++i]); printf("Using %f clustering radius\n",clustering); break;
|
||||||
|
|
||||||
default : {printf("Error unable to parse option '%s'\n",argv[i]); exit(0);}
|
default : {printf("Error unable to parse option '%s'\n",argv[i]); exit(0);}
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
int t0=clock();
|
int t0=clock();
|
||||||
// Initialization
|
// Initialization
|
||||||
Pivot<MyMesh> pivot(m, radius, clustering);
|
tri::Pivot<MyMesh> pivot(m, radius, clustering);
|
||||||
|
|
||||||
int t1=clock();
|
int t1=clock();
|
||||||
// the main processing
|
// the main processing
|
||||||
|
|
Loading…
Reference in New Issue