mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-17 19:50:06 +00:00
Add protected accessor to return patch index in Far::PatchTables
This commit is contained in:
parent
222f95d6c3
commit
446aa492b7
@ -127,6 +127,12 @@ PatchTables::pushPatchArray(PatchDescriptor desc, int npatches,
|
||||
}
|
||||
}
|
||||
|
||||
Index
|
||||
PatchTables::getPatchIndex(int arrayIndex, int patchIndex) const {
|
||||
PatchArray const & pa = getPatchArray(arrayIndex);
|
||||
assert(patchIndex<pa.numPatches);
|
||||
return pa.patchIndex + patchIndex;
|
||||
}
|
||||
Index *
|
||||
PatchTables::getSharpnessIndices(int arrayIndex) {
|
||||
return &_sharpnessIndices[getPatchArray(arrayIndex).patchIndex];
|
||||
|
@ -441,6 +441,7 @@ protected:
|
||||
|
||||
Index findPatchArray(PatchDescriptor desc);
|
||||
|
||||
Index getPatchIndex(int array, int patch) const;
|
||||
IndexArray getPatchArrayVertices(int arrayIndex);
|
||||
PatchParamArray getPatchParams(int arrayIndex);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user