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 withBoundaryIOManager3D
.Implementation note: implementations of this interface must be thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
write(java.util.stream.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(java.util.Collection<? extends FacetDefinition> facets, GeometryOutput out)
Write allfacets
in the collection to the output using the data format supported by this instance.void
writeFacets(java.util.stream.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 Detail
-
write
void write(java.util.stream.Stream<? extends PlaneConvexSubset> boundaries, GeometryOutput out)
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:
java.io.UncheckedIOException
- if an I/O error occurs
-
writeFacets
void writeFacets(java.util.Collection<? extends FacetDefinition> facets, GeometryOutput out)
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:
java.io.UncheckedIOException
- if an I/O error occurs
-
writeFacets
void writeFacets(java.util.stream.Stream<? extends FacetDefinition> facets, GeometryOutput out)
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:
java.io.UncheckedIOException
- if an I/O error occurs
-
-