public class StlTextFile extends Object implements IFileExporter
Constructor and Description |
---|
StlTextFile(OutputStream stream)
Constructs the object with the given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeToFile(List<Facet> facets)
Do the actual export to file.
|
public StlTextFile(OutputStream stream)
stream
- the stream to write topublic void writeToFile(List<Facet> facets) throws IOException
IFileExporter
writeToFile
in interface IFileExporter
facets
- the facets to export.
See the CSG.toFacets()
methodIOException
- if any IO error happens during the export.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2020, Printing in 3D. All rights reserved.