Class StLReader
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
Provides an importer for StereoLithography .StL files.
[Obsolete("Suggest to use HelixToolkit.SharpDX.Assimp")]
public class StLReader : ModelReader, IModelReader
- Inheritance
-
StLReader
- Implements
- Inherited Members
Remarks
The format is documented on Wikipedia.
Constructors
StLReader()
Initializes a new instance of the StLReader class.
public StLReader()
Properties
Header
Gets the file header.
public string Header { get; }
Property Value
- string
The header.
Materials
Gets the materials.
public IList<MaterialCore> Materials { get; }
Property Value
- IList<MaterialCore>
The materials.
Meshes
Gets the meshes.
public IList<MeshBuilder> Meshes { get; }
Property Value
- IList<MeshBuilder>
The meshes.
Methods
Read(Stream, ModelInfo)
Reads the model from the specified stream.
public override List<Object3D>? Read(Stream stream, ModelInfo info = default)
Parameters
Returns
ToModel3D()
Builds the model.
public List<Object3D> ToModel3D()