Click or drag to resize
SoSTLInputReader Class

Class for importing a scene graph from a STL file.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.InventorSoDisposable
      OIV.InventorSoInputReader
        OIV.Inventor.IO.STLSoSTLInputReader

Namespace: OIV.Inventor.IO.STL
Assembly: OIV.Inventor.IO.STL (in OIV.Inventor.IO.STL.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public class SoSTLInputReader : SoInputReader

The SoSTLInputReader type exposes the following members.

Constructors
  NameDescription
Public methodSoSTLInputReader

Constructor.

Top
Methods
  NameDescription
Public methodCanConvert

Returns true if the specified input source can be converted by this plugin.

(Inherited from SoInputReader.)
Public methodConvert

Returns the specified input source in the form of an Open Inventor scene graph.

(Inherited from SoInputReader.)
Public methodDispose
Releases all resources used by SoDisposable.
(Inherited from SoDisposable.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyIsDisposable
ISafeDisposable interface implementation.
(Inherited from SoDisposable.)
Top
Remarks

This class imports data from an STL format (.stl) file into an Open Inventor scene graph.

Both ASCII and binary file formats are supported.

It may be efficient to use this class directly to import STL format data when the file format is already known. For convenience, note that the OIV.Inventor.SoDB.ReadAll(OIV.Inventor.SoInput) method will automatically use this class if it detects that the specified file is STL format.

Limitations:

  • Import is done in float single precision. Precision may be lost if stl file contains values in double precision.

See Also