diff --git a/apps/sample/trimesh_voronoi_remesh/trimesh_voronoi_remesh.cpp b/apps/sample/trimesh_voronoi_remesh/trimesh_voronoi_remesh.cpp index 523e6389..aec60bbd 100644 --- a/apps/sample/trimesh_voronoi_remesh/trimesh_voronoi_remesh.cpp +++ b/apps/sample/trimesh_voronoi_remesh/trimesh_voronoi_remesh.cpp @@ -68,7 +68,7 @@ int main( int argc, char **argv ) printf("Unable to open %s for '%s'\n",argv[1],tri::io::ImporterPLY::ErrorMsg(ret)); return -1; } - float samplingRadius = 0.3; + float samplingRadius = startMesh.bbox.Diag() *0.02f; auto remeshed = Remesher::Remesh(startMesh, samplingRadius, 50.0);