Class ObjBoundaryReadHandler3D

    • Field Detail

      • defaultCharset

        private java.nio.charset.Charset defaultCharset
        Charset for reading text input.
    • Constructor Detail

      • ObjBoundaryReadHandler3D

        public ObjBoundaryReadHandler3D()
    • Method Detail

      • getFormat

        public GeometryFormat getFormat()
        Get the data format supported by this handler.
        Returns:
        data format supported by this handler
      • getDefaultCharset

        public java.nio.charset.Charset getDefaultCharset()
        Get the text input default charset, used if the input does not specify a charset.
        Returns:
        text input default charset
      • setDefaultCharset

        public void setDefaultCharset​(java.nio.charset.Charset charset)
        Set the text input default charset, used if the input does not specify a charset.
        Parameters:
        charset - text input default charset
      • readTriangleMesh

        public TriangleMesh readTriangleMesh​(GeometryInput in,
                                             org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)
        Read a triangle mesh from the given input. Implementations may throw runtime exceptions if mathematically invalid boundaries are encountered.
        Specified by:
        readTriangleMesh in interface BoundaryReadHandler3D
        Overrides:
        readTriangleMesh in class AbstractBoundaryReadHandler3D
        Parameters:
        in - input stream to read from
        precision - precision context used for floating point comparisons
        Returns:
        triangle mesh containing the data from the given input stream
      • createReader

        private java.io.Reader createReader​(GeometryInput in)
        Create a Reader for reading character data from the given input.
        Parameters:
        in - input to read from
        Returns:
        reader instance
        Throws:
        java.io.UncheckedIOException - if an I/O error occurs