Interface Mesh.Face

    • Method Detail

      • getIndex

        int getIndex()
        Get the 0-based index of the face in the mesh.
        Returns:
        the 0-based index of the face in the mesh
      • getVertexIndices

        int[] getVertexIndices()
        Get an array containing the 0-based indices of the vertices defining this face. The indices are references to the vertex positions in the mesh vertex list.
        Returns:
        an array containing the indices of the vertices defining this face
        See Also:
        Mesh.getVertices()
      • getVertices

        java.util.List<Vector3D> getVertices()
        Get the vertices for the face.
        Returns:
        the vertices for the face
      • definesPolygon

        boolean definesPolygon()
        Return true if the vertices for this face define a convex polygon with non-zero size.
        Returns:
        true if the vertices for this face define a convex polygon with non-zero size
      • getPolygon

        ConvexPolygon3D getPolygon()
        Get the 3D polygon defined by this face.
        Returns:
        the 3D polygon defined by this face
        Throws:
        java.lang.IllegalArgumentException - if the vertices for the face do not define a polygon
        See Also:
        definesPolygon()