Interface BoundaryWriteHandler3D
- All Superinterfaces:
BoundaryWriteHandler<PlaneConvexSubset,
BoundarySource3D>
- All Known Implementing Classes:
AbstractBoundaryWriteHandler3D
,AbstractTextBoundaryWriteHandler3D
,CsvBoundaryWriteHandler3D
,ObjBoundaryWriteHandler3D
,StlBoundaryWriteHandler3D
,TextBoundaryWriteHandler3D
public interface BoundaryWriteHandler3D
extends BoundaryWriteHandler<PlaneConvexSubset,BoundarySource3D>
Basic interface for writing 3D geometric boundary representations
(B-reps) in a specific data storage
format. This interface is primarily intended for use with
BoundaryIOManager3D
.
Implementation note: implementations of this interface must be thread-safe.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
write
(Stream<? extends PlaneConvexSubset> boundaries, GeometryOutput out) Write all boundaries in the stream to the given output using the data format supported by this instance.void
writeFacets
(Collection<? extends FacetDefinition> facets, GeometryOutput out) Write allfacets
in the collection to the output using the data format supported by this instance.void
writeFacets
(Stream<? extends FacetDefinition> facets, GeometryOutput out) Write allfacets
in the stream to the output using the data format supported by this instance.Methods inherited from interface org.apache.commons.geometry.io.core.BoundaryWriteHandler
getFormat, write
-
Method Details
-
write
Write all boundaries in the stream to the given output using the data format supported by this instance. The stream passed as an argument is not closed, meaning that callers are responsible for closing the stream if necessary (for example, if the stream fetches data from the file system).- Parameters:
boundaries
- stream containing boundaries to writeout
- output to write to- Throws:
UncheckedIOException
- if an I/O error occurs
-
writeFacets
Write allfacets
in the collection to the output using the data format supported by this instance.- Parameters:
facets
- facets to writeout
- output to write to- Throws:
UncheckedIOException
- if an I/O error occurs
-
writeFacets
Write allfacets
in the stream to the output using the data format supported by this instance. The stream passed as an argument is not closed, meaning that callers are responsible for closing the stream if necessary (for example, if the stream fetches data from the file system).- Parameters:
facets
- stream containing facets to writeout
- output to write to- Throws:
UncheckedIOException
- if an I/O error occurs
-