Class ObjFacetDefinitionReader
- java.lang.Object
-
- org.apache.commons.geometry.io.euclidean.threed.obj.AbstractObjPolygonReader
-
- org.apache.commons.geometry.io.euclidean.threed.obj.ObjFacetDefinitionReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,FacetDefinitionReader
public class ObjFacetDefinitionReader extends AbstractObjPolygonReader implements FacetDefinitionReader
Class for readingfacets
from OBJ content.
-
-
Constructor Summary
Constructors Constructor Description ObjFacetDefinitionReader(java.io.Reader reader)
Construct a new instance that reads OBJ content from the given reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleNormal(Vector3D normal)
Method called when a normal is found in the OBJ content.protected void
handleVertex(Vector3D vertex)
Method called when a vertex is found in the OBJ content.FacetDefinition
readFacet()
Return the next facet definition from the input source or null if no more facets are available.-
Methods inherited from class org.apache.commons.geometry.io.euclidean.threed.obj.AbstractObjPolygonReader
close, isFailOnNonPolygonKeywords, readFace, setFailOnNonPolygonKeywords
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.geometry.io.euclidean.threed.FacetDefinitionReader
close
-
-
-
-
Method Detail
-
readFacet
public FacetDefinition readFacet()
Return the next facet definition from the input source or null if no more facets are available.- Specified by:
readFacet
in interfaceFacetDefinitionReader
- Returns:
- the next facet definition or null if no more facets are available
-
handleVertex
protected void handleVertex(Vector3D vertex)
Method called when a vertex is found in the OBJ content.- Specified by:
handleVertex
in classAbstractObjPolygonReader
- Parameters:
vertex
- vertex value
-
handleNormal
protected void handleNormal(Vector3D normal)
Method called when a normal is found in the OBJ content.- Specified by:
handleNormal
in classAbstractObjPolygonReader
- Parameters:
normal
- normal value
-
-