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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String comment) void
addFace
(@Nullable DogArray_I32 vertexes) Adds a face with the specified vertexes.void
void
addLibrary
(String name) void
addLine
(@Nullable DogArray_I32 vertexes) Adds a line with the specified vertexes.void
addMaterial
(String name) void
addPoint
(int vertex) void
addTextureVertex
(double x, double y) void
addVertex
(double x, double y, double z) void
addVertexNormal
(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
-