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
IFileExporterwriteToFile in interface IFileExporterfacets - 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 Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2020, Printing in 3D. All rights reserved.