don't merge if hulls are empty

This commit is contained in:
ejcoumans 2006-05-26 19:14:55 +00:00
parent 049a2af90f
commit 95ea729454

View File

@ -142,6 +142,11 @@ CHull * ConvexBuilder::canMerge(CHull *a,CHull *b)
unsigned int vcount = Vl_getVcount(vc);
const float *vertices = Vl_getVertices(vc);
unsigned int tcount = indices.size()/3;
//don't do anything if hull is empty
if (!tcount)
return 0;
unsigned int *idx = &indices[0];
HullResult hresult;