public abstract class AbstractBoundaryReadHandler3D extends Object implements BoundaryReadHandler3D
BoundaryReadHandler3D
implementations.Constructor and Description |
---|
AbstractBoundaryReadHandler3D() |
Modifier and Type | Method and Description |
---|---|
Stream<PlaneConvexSubset> |
boundaries(GeometryInput in,
Precision.DoubleEquivalence precision) |
Stream<FacetDefinition> |
facets(GeometryInput in)
Return a
Stream that can be used to access all facet information from the given input stream. |
BoundarySource3D |
read(GeometryInput in,
Precision.DoubleEquivalence precision) |
TriangleMesh |
readTriangleMesh(GeometryInput in,
Precision.DoubleEquivalence precision)
Read a triangle mesh from the given input.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
facetDefinitionReader
getFormat
public AbstractBoundaryReadHandler3D()
public BoundarySource3D read(GeometryInput in, Precision.DoubleEquivalence precision)
read
in interface BoundaryReadHandler<PlaneConvexSubset,BoundarySource3D>
public TriangleMesh readTriangleMesh(GeometryInput in, Precision.DoubleEquivalence precision)
readTriangleMesh
in interface BoundaryReadHandler3D
in
- input stream to read fromprecision
- precision context used for floating point comparisonspublic Stream<PlaneConvexSubset> boundaries(GeometryInput in, Precision.DoubleEquivalence precision)
boundaries
in interface BoundaryReadHandler<PlaneConvexSubset,BoundarySource3D>
public Stream<FacetDefinition> facets(GeometryInput in)
Stream
that can be used to access all facet information from the given input stream.
The input stream is expected to contain data in the format supported by this handler.
The underlying input stream is closed when the returned stream is closed. Callers should therefore use the returned stream in a try-with-resources statement to ensure that all resources are properly released.
try (Stream<FacetDefinition> stream = handler.facets(in)) { // access stream content }
The following exceptions may be thrown during stream iteration:
IllegalArgumentException
if mathematically invalid data is encounteredIllegalStateException
if a parsing or syntax error occursUncheckedIOException
if an I/O error occursfacets
in interface BoundaryReadHandler3D
in
- input stream to read from; this is not closed when the returned stream is closedCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.