mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-07 23:40:12 +00:00
Minor code cleanup of FarMeshFactory
This commit is contained in:
parent
f1518a5f59
commit
9fda7b73f7
@ -420,8 +420,6 @@ FarMeshFactory<T,U>::refineAdaptive( HbrMesh<T> * mesh, int maxIsolate ) {
|
|||||||
int ncoarsefaces = mesh->GetNumCoarseFaces(),
|
int ncoarsefaces = mesh->GetNumCoarseFaces(),
|
||||||
ncoarseverts = mesh->GetNumVertices();
|
ncoarseverts = mesh->GetNumVertices();
|
||||||
|
|
||||||
int maxlevel = maxIsolate+1;
|
|
||||||
|
|
||||||
// First pass : tag coarse vertices & faces that need refinement
|
// First pass : tag coarse vertices & faces that need refinement
|
||||||
|
|
||||||
typedef std::set<HbrVertex<T> *,VertCompare<T> > VertSet;
|
typedef std::set<HbrVertex<T> *,VertCompare<T> > VertSet;
|
||||||
@ -507,7 +505,7 @@ FarMeshFactory<T,U>::refineAdaptive( HbrMesh<T> * mesh, int maxIsolate ) {
|
|||||||
|
|
||||||
// Second pass : refine adaptively around singularities
|
// Second pass : refine adaptively around singularities
|
||||||
|
|
||||||
for (int level=0; level<maxlevel-1; ++level) {
|
for (int level=0; level<maxIsolate; ++level) {
|
||||||
|
|
||||||
verts = nextverts;
|
verts = nextverts;
|
||||||
nextverts.clear();
|
nextverts.clear();
|
||||||
@ -576,7 +574,7 @@ FarMeshFactory<T,U>::refineAdaptive( HbrMesh<T> * mesh, int maxIsolate ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return maxlevel-1;
|
return maxIsolate;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assumption : the order of the vertices in the HbrMesh could be set in any
|
// Assumption : the order of the vertices in the HbrMesh could be set in any
|
||||||
|
Loading…
Reference in New Issue
Block a user