mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-08 07:40:17 +00:00
Merge pull request #620 from takahito-tejima/stencil
Fix a bug in limit stencil table creation
This commit is contained in:
commit
2ecfb9c2c0
@ -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.
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user