mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-04 22:20:14 +00:00
Updates for blender development. Add convenience function
for adding faces and specify that osdutil is an installed library.
This commit is contained in:
parent
1a8b41287e
commit
8b65c1b2f4
@ -83,4 +83,6 @@ install( FILES ${PUBLIC_HEADER_FILES}
|
||||
DESTINATION ${CMAKE_INCDIR_BASE}/osdutil
|
||||
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ )
|
||||
|
||||
install( TARGETS osdutil DESTINATION ${CMAKE_BINDIR_BASE})
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
@ -112,7 +112,12 @@ class PxOsdUtilSubdivTopology {
|
||||
std::vector<float> fvData;
|
||||
PxOsdUtilTagData tagData;
|
||||
|
||||
|
||||
void AddFace(int numVertsInFace, int *verts) {
|
||||
nverts.push_back(numVertsInFace);
|
||||
for (int i=0; i<numVertsInFace; ++i)
|
||||
indices.push_back(verts[i]);
|
||||
}
|
||||
|
||||
// Initialize using raw types.
|
||||
//
|
||||
// This is useful for automated tests initializing with data like:
|
||||
|
Loading…
Reference in New Issue
Block a user