Back to class index
| Polyhedron::FacePolygonSyntaxPolygon Polyhedron::FacePolygon(int faceIndex) const; [15 lines of code]Returns a polygon representing the given face. The winding order of the polygon will be the same as in the input. The normal of the polygon points outwards from this polyhedron, i.e. towards the space that is not part of the polyhedron. This function constructs a new Polygon object, so it has a time and space complexity of O(|V|), where |V| is the number of vertices in this polyhedron. ParametersintfaceIndexThe index of the face to get, in the range [0, NumFaces()-1]. See Also |