Better init for the sampling radius of the voronoi remesher

This commit is contained in:
Paolo Cignoni 2017-03-13 15:50:36 +01:00
parent 97e4c0d23b
commit a34a8dd44e
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ int main( int argc, char **argv )
printf("Unable to open %s for '%s'\n",argv[1],tri::io::ImporterPLY<MyMesh>::ErrorMsg(ret)); printf("Unable to open %s for '%s'\n",argv[1],tri::io::ImporterPLY<MyMesh>::ErrorMsg(ret));
return -1; return -1;
} }
float samplingRadius = 0.3; float samplingRadius = startMesh.bbox.Diag() *0.02f;
auto remeshed = Remesher<MyMesh>::Remesh(startMesh, samplingRadius, 50.0); auto remeshed = Remesher<MyMesh>::Remesh(startMesh, samplingRadius, 50.0);