Class PolygonObjParser.VertexAttributes

java.lang.Object
org.apache.commons.geometry.io.euclidean.threed.obj.PolygonObjParser.VertexAttributes
Enclosing class:
PolygonObjParser

public static final class PolygonObjParser.VertexAttributes extends Object
Class representing a set of attributes for a face vertex. All index values are 0-based and positive, in contrast with OBJ indices which are 1-based and support negative values. If an index value is not given in the OBJ content, it is set to -1.
  • Method Details

    • getVertexIndex

      public int getVertexIndex()
      Get the vertex position index for this instance. This value is required and is guaranteed to be a valid index into the list of vertex positions parsed so far in the OBJ content.
      Returns:
      vertex index
    • getTextureIndex

      public int getTextureIndex()
      Get the texture index for this instance or -1 if not specified in the OBJ content.
      Returns:
      texture index or -1 if not specified in the OBJ content.
    • getNormalIndex

      public int getNormalIndex()
      Get the normal index for this instance or -1 if not specified in the OBJ content.
      Returns:
      normal index or -1 if not specified in the OBJ content.