Add check in shape_utils that detects dicsonnected vertices in a shape mesh and exits with an error message.

A more permanent fix will be to handle fully non-manifold topology at the Hbr level, but that is beyond the
scope of fixing this problem.

fixes #175
This commit is contained in:
manuelk 2013-06-13 16:22:59 -07:00
parent 795dec5fdc
commit cf13a8d755

View File

@ -862,6 +862,12 @@ createTopology( shape const * sh, OpenSubdiv::HbrMesh<T> * mesh, Scheme scheme)
applyTags<T>( mesh, sh );
mesh->Finish();
// check for disconnected vertices
if (mesh->GetNumDisconnectedVertices()) {
printf("The specified subdivmesh contains disconnected surface components.\n");
exit(1);
}
}
//------------------------------------------------------------------------------