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)
IFileExporter
writeToFile
in interface IFileExporter
facets
- the facets to export.
See the CSG.toFacets()
methodpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2020, Printing in 3D. All rights reserved.