Package mgui.io.domestic.printing
Class StlWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.SurfaceFileWriter
mgui.io.domestic.printing.StlWriter
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class StlWriter extends SurfaceFileWriter
Writes a
Mesh3D
object to STL format, suitable for 3D printing. Implements ASCII and
binary formats.
See this link for details.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.domestic.shapes.SurfaceFileWriter
number_format
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message
-
Constructor Summary
Constructors Constructor Description StlWriter()
-
Method Summary
Modifier and Type Method Description java.util.ArrayList<java.lang.Class<?>>
getSupportedObjects()
Returns a list of classes for objects which are supported by this I/O interfaceboolean
writeAscii(Mesh3DInt mesh, ProgressUpdater progress_bar)
Writesmesh
as an ASCII-format STL file.boolean
writeBinary(Mesh3DInt mesh, ProgressUpdater progress_bar)
Writesmesh
as an binary-format STL file.boolean
writeSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)
Writemesh
with thisFileWriter
.Methods inherited from class mgui.io.domestic.shapes.SurfaceFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getTitle, setFormat, write, writeSurface, writeSurfaces, writeSurfaces
Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getURL, setFile, setOptions, setURL, toString, write, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
StlWriter
public StlWriter()
-
-
Method Details
-
writeSurface
public boolean writeSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)Description copied from class:SurfaceFileWriter
Writemesh
with thisFileWriter
.- Specified by:
writeSurface
in classSurfaceFileWriter
- Returns:
-
writeAscii
Writesmesh
as an ASCII-format STL file.- Parameters:
mesh
-- Returns:
-
writeBinary
Writesmesh
as an binary-format STL file.- Parameters:
mesh
-- Returns:
-
getSupportedObjects
public java.util.ArrayList<java.lang.Class<?>> getSupportedObjects()Description copied from interface:InterfaceIO
Returns a list of classes for objects which are supported by this I/O interface- Specified by:
getSupportedObjects
in interfaceInterfaceIO
- Overrides:
getSupportedObjects
in classSurfaceFileWriter
- Returns:
-