*** empty log message ***
This commit is contained in:
parent
568dbaf75f
commit
d3aedf18ce
|
@ -50,7 +50,7 @@ int main(int argc, char **argv)
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
float radius = 1.0f;
|
float radius = 0.0f;
|
||||||
float clustering = 0.05;
|
float clustering = 0.05;
|
||||||
int i = 3;
|
int i = 3;
|
||||||
while(i<argc)
|
while(i<argc)
|
||||||
|
@ -66,7 +66,9 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
if(radius == 0)
|
||||||
|
printf("Autodetecting ball radius...\n");
|
||||||
|
|
||||||
MyMesh m;
|
MyMesh m;
|
||||||
|
|
||||||
if(vcg::tri::io::ImporterPLY<MyMesh>::Open(m,argv[1])!=0)
|
if(vcg::tri::io::ImporterPLY<MyMesh>::Open(m,argv[1])!=0)
|
||||||
|
@ -81,6 +83,7 @@ int main(int argc, char **argv)
|
||||||
int t0=clock();
|
int t0=clock();
|
||||||
// Initialization
|
// Initialization
|
||||||
tri::Pivot<MyMesh> pivot(m, radius, clustering);
|
tri::Pivot<MyMesh> pivot(m, radius, clustering);
|
||||||
|
printf("Ball radius: %f\nClustering points withing %f radii\n", pivot.radius, clustering);
|
||||||
|
|
||||||
int t1=clock();
|
int t1=clock();
|
||||||
// the main processing
|
// the main processing
|
||||||
|
|
Loading…
Reference in New Issue