public class PolygonFile extends Object implements IFileExporter
| Constructor and Description |
|---|
PolygonFile(OutputStream stream)
Constructs the object with the given file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeToFile(List<Facet> facets)
Do the actual export to file.
|
public PolygonFile(OutputStream stream)
stream - the file to write topublic void writeToFile(List<Facet> facets)
IFileExporterwriteToFile in interface IFileExporterfacets - the facets to export.
See the CSG.toFacets() methodpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2020, Printing in 3D. All rights reserved.