Table of Contents

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

dispatcher Dispatcher

The 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

IList<Material>

The materials.

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

stream Stream

The stream.

Returns

Model3DGroup

The model.

ToModel3D()

Builds the model.

public Model3DGroup ToModel3D()

Returns

Model3DGroup

The model.