public class ObjFacetDefinitionReader extends AbstractObjPolygonReader implements FacetDefinitionReader
facets from OBJ content.| Constructor and Description |
|---|
ObjFacetDefinitionReader(Reader reader)
Construct a new instance that reads OBJ content from the given reader.
|
| Modifier and Type | Method and 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.
|
close, isFailOnNonPolygonKeywords, readFace, setFailOnNonPolygonKeywordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic ObjFacetDefinitionReader(Reader reader)
reader - reader to read frompublic FacetDefinition readFacet()
readFacet in interface FacetDefinitionReaderprotected void handleVertex(Vector3D vertex)
handleVertex in class AbstractObjPolygonReadervertex - vertex valueprotected void handleNormal(Vector3D normal)
handleNormal in class AbstractObjPolygonReadernormal - normal valueCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.