Package boofcv.io.points.impl
Class ObjFileWriter
java.lang.Object
boofcv.io.points.impl.ObjFileWriter
Interface for creating an OBJ file. As components are added they are written to. It's possible to
add a face that automatically uses recent vertexes. Only vertexes and faces are currently supported.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(String comment) voidaddFace(@Nullable DogArray_I32 vertexes) Adds a face with the specified vertexes.voidvoidaddLibrary(String name) voidaddLine(@Nullable DogArray_I32 vertexes) Adds a line with the specified vertexes.voidaddMaterial(String name) voidaddPoint(int vertex) voidaddTextureVertex(double x, double y) voidaddVertex(double x, double y, double z) voidaddVertexNormal(double dx, double dy, double dz)
-
Field Details
-
formatFloat
-
-
Constructor Details
-
ObjFileWriter
-
-
Method Details
-
addComment
- Throws:
IOException
-
addVertex
- Throws:
IOException
-
addTextureVertex
- Throws:
IOException
-
addVertexNormal
- Throws:
IOException
-
addMaterial
- Throws:
IOException
-
addLibrary
- Throws:
IOException
-
addGroup
- Throws:
IOException
-
addPoint
- Throws:
IOException
-
addLine
Adds a line with the specified vertexes.NOTE: Vertexes indexes are 0-indexed. Not 1-indexed like they are in OBJ files.
- Parameters:
vertexes- Index of vertexes in this face. If null then automatic.- Throws:
IOException
-
addFace
Adds a face with the specified vertexes. If there are no vertex indexes it will reference all the vertexes added since the last object was written.NOTE: Vertexes indexes are 0-indexed. Not 1-indexed like they are in OBJ files.
- Parameters:
vertexes- Index of vertexes in this face. If null then automatic.- Throws:
IOException
-