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_formatFields 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 interfacebooleanwriteAscii(Mesh3DInt mesh, ProgressUpdater progress_bar)Writesmeshas an ASCII-format STL file.booleanwriteBinary(Mesh3DInt mesh, ProgressUpdater progress_bar)Writesmeshas an binary-format STL file.booleanwriteSurface(Mesh3DInt mesh, InterfaceIOOptions options, ProgressUpdater progress_bar)Writemeshwith thisFileWriter.Methods inherited from class mgui.io.domestic.shapes.SurfaceFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getTitle, setFormat, write, writeSurface, writeSurfaces, writeSurfacesMethods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getURL, setFile, setOptions, setURL, toString, write, writeMethods 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:SurfaceFileWriterWritemeshwith thisFileWriter.- Specified by:
writeSurfacein classSurfaceFileWriter- Returns:
-
writeAscii
Writesmeshas an ASCII-format STL file.- Parameters:
mesh-- Returns:
-
writeBinary
Writesmeshas an binary-format STL file.- Parameters:
mesh-- Returns:
-
getSupportedObjects
public java.util.ArrayList<java.lang.Class<?>> getSupportedObjects()Description copied from interface:InterfaceIOReturns a list of classes for objects which are supported by this I/O interface- Specified by:
getSupportedObjectsin interfaceInterfaceIO- Overrides:
getSupportedObjectsin classSurfaceFileWriter- Returns:
-