Package boofcv.io.points.impl
Class StlFileWriter
java.lang.Object
boofcv.io.points.impl.StlFileWriter
Writes a file that's in STL format when given a data structure that's wrapped by
MeshPolygonAccess
as input.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Specifies how errors are handled. -
Field Summary
Modifier and TypeFieldDescriptionWith a bad polygon is detected this function is called.Specifies number of digits in printf it should print the float. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeAscii
(MeshPolygonAccess mesh, String name, Writer writer) Generates an STL file in ASCII format given a mesh inMeshPolygonAccess
format.void
writeBinary
(MeshPolygonAccess mesh, String name, OutputStream output) Generates an STL file in binary format given a mesh inMeshPolygonAccess
format.
-
Field Details
-
precision
Specifies number of digits in printf it should print the float. ASCII only -
errorHandler
With a bad polygon is detected this function is called. Replace with custom logic
-
-
Constructor Details
-
StlFileWriter
public StlFileWriter()
-
-
Method Details
-
writeAscii
Generates an STL file in ASCII format given a mesh inMeshPolygonAccess
format.- Parameters:
mesh
- (Input) Mesh accessorname
- (Input) What you want to call this meshwriter
- (Output) where it's written to- Throws:
IOException
-
writeBinary
public void writeBinary(MeshPolygonAccess mesh, String name, OutputStream output) throws IOException Generates an STL file in binary format given a mesh inMeshPolygonAccess
format.- Parameters:
mesh
- (Input) Mesh accessorname
- (Input) What you want to call this meshoutput
- (Output) where it's saved to- Throws:
IOException
-