Merge pull request #620 from takahito-tejima/stencil

Fix a bug in limit stencil table creation
This commit is contained in:
Jeremy Cowles 2015-06-10 14:05:58 -07:00
commit 2ecfb9c2c0
2 changed files with 2 additions and 4 deletions

View File

@ -69,7 +69,7 @@ namespace {
for ( size_t i=start; i<offsets->size(); i++ ) { for ( size_t i=start; i<offsets->size(); i++ ) {
// Once we've copied out all the control verts, jump to the offset // Once we've copied out all the control verts, jump to the offset
// where the actual stencils begin. // where the actual stencils begin.
if ((int)i == numControlVerts) if (includeCoarseVerts and (int)i == numControlVerts)
i = firstOffset; i = firstOffset;
// Copy the stencil. // Copy the stencil.

View File

@ -453,8 +453,6 @@ LimitStencilTableFactory::Create(TopologyRefiner const & refiner,
// //
// Copy the proto-stencils into the limit stencil table // Copy the proto-stencils into the limit stencil table
// //
size_t firstOffset = refiner.GetLevel(0).GetNumVertices();
LimitStencilTable * result = new LimitStencilTable( LimitStencilTable * result = new LimitStencilTable(
refiner.GetLevel(0).GetNumVertices(), refiner.GetLevel(0).GetNumVertices(),
builder.GetStencilOffsets(), builder.GetStencilOffsets(),
@ -464,7 +462,7 @@ LimitStencilTableFactory::Create(TopologyRefiner const & refiner,
builder.GetStencilDuWeights(), builder.GetStencilDuWeights(),
builder.GetStencilDvWeights(), builder.GetStencilDvWeights(),
/*ctrlVerts*/false, /*ctrlVerts*/false,
firstOffset); /*fristOffset*/0);
return result; return result;
} }