Updates for blender development. Add convenience function

for adding faces and specify that osdutil is an installed
library.
This commit is contained in:
Dirk Van Gelder 2013-12-23 08:59:13 -08:00
parent 1a8b41287e
commit 8b65c1b2f4
2 changed files with 8 additions and 1 deletions

View File

@ -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})
#-------------------------------------------------------------------------------

View File

@ -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: