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 Details

    • write

      void 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. 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 write
      out - output to write to
      Throws:
      UncheckedIOException - if an I/O error occurs
    • writeFacets

      void writeFacets(Collection<? extends FacetDefinition> facets, GeometryOutput out)
      Write all facets in the collection to the output using the data format supported by this instance.
      Parameters:
      facets - facets to write
      out - output to write to
      Throws:
      UncheckedIOException - if an I/O error occurs
    • writeFacets

      void writeFacets(Stream<? extends FacetDefinition> facets, GeometryOutput out)
      Write all facets 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 write
      out - output to write to
      Throws:
      UncheckedIOException - if an I/O error occurs