From 9fda7b73f78fa351632e2a02f05a9512aa02add4 Mon Sep 17 00:00:00 2001 From: manuelk Date: Thu, 13 Feb 2014 11:46:31 -0800 Subject: [PATCH] Minor code cleanup of FarMeshFactory --- opensubdiv/far/meshFactory.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/opensubdiv/far/meshFactory.h b/opensubdiv/far/meshFactory.h index 6f0c5d1f..faa72913 100644 --- a/opensubdiv/far/meshFactory.h +++ b/opensubdiv/far/meshFactory.h @@ -420,8 +420,6 @@ FarMeshFactory::refineAdaptive( HbrMesh * mesh, int maxIsolate ) { int ncoarsefaces = mesh->GetNumCoarseFaces(), ncoarseverts = mesh->GetNumVertices(); - int maxlevel = maxIsolate+1; - // First pass : tag coarse vertices & faces that need refinement typedef std::set *,VertCompare > VertSet; @@ -507,7 +505,7 @@ FarMeshFactory::refineAdaptive( HbrMesh * mesh, int maxIsolate ) { // Second pass : refine adaptively around singularities - for (int level=0; level::refineAdaptive( HbrMesh * mesh, int maxIsolate ) { } } } - return maxlevel-1; + return maxIsolate; } // Assumption : the order of the vertices in the HbrMesh could be set in any