Class StLReader
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Provides an importer for StereoLithography .StL files.
public sealed class StLReader : ModelReader, IModelReader
- Inheritance
-
StLReader
- Implements
- Inherited Members
Remarks
The format is documented on Wikipedia.
Constructors
StLReader(Dispatcher?)
Initializes a new instance of the StLReader class.
public StLReader(Dispatcher? dispatcher = null)
Parameters
dispatcherDispatcherThe dispatcher.
Properties
Header
Gets the file header.
public string Header { get; }
Property Value
- string
The header.
Materials
Gets the materials.
public IList<Material> Materials { get; }
Property Value
Meshes
Gets the meshes.
public IList<MeshBuilder> Meshes { get; }
Property Value
- IList<MeshBuilder>
The meshes.
Methods
Read(Stream)
Reads the model from the specified stream.
public override Model3DGroup? Read(Stream stream)
Parameters
streamStreamThe stream.
Returns
- Model3DGroup
The model.
ToModel3D()
Builds the model.
public Model3DGroup ToModel3D()
Returns
- Model3DGroup
The model.