Back to class index
| Polyhedron::FaceIndicesValidSyntaxbool Polyhedron::FaceIndicesValid() const; [22 lines of code]Tests if the faces in this polyhedron refer to valid existing vertices. This function performs sanity checks on the face indices array. 1) Each vertex index for each face must be in the range [0, NumVertices()-1], i.e. refer to a vertex that exists in the array. 2) Each face must contain at least three vertices. If a face contains two or one vertex, it is degenerate. 3) Each face may refer to a vertex at most once. Return ValueTrue if the abovementioned conditions hold. Note that this does not guarantee that the polyhedron is completely well-formed, but if false is returned, the polyhedron is definitely ill-formed. See Also |