Click or drag to resize
Ab4d.SharpEngine logo

StlExporter Class

StlExporter can be used to export a Mesh or a single ModelNode into .stl file.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesStlExporter

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public class StlExporter

The StlExporter type exposes the following members.

Constructors
 NameDescription
Public methodStlExporterInitializes a new instance of the StlExporter class
Top
Properties
 NameDescription
Public propertyConvertToZUp When true (false by default), then the model is converted from Y-up coordinate system to Z-up coordinate system. This is done by setting Y to Z and Z to -Y.
Public propertyHeaderText Gets or sets the header text that will be written to the binary stl file header. Max text length is 79 ASCII chars. When null, then the DefaultHeaderText is used.
Public propertyModelColor When set (is not null) then the color is written to the binary stl file header after the "COLOR=" text. Some importer (including StlImporter) can read this color.
Top
Methods
 NameDescription
Public methodExport(Stream, Mesh) Export method exports the specified mesh to the specified stream.
Public methodExport(String, Mesh) Export method exports the specified mesh to the specified file. If the file already exists, then it is deleted before creating a new one.
Public methodExport(Stream, ModelNode, Boolean) Export method exports the mesh from the modelNode to the specified stream.
Public methodExport(String, ModelNode, Boolean) Export method exports the mesh from the modelNode to the specified file. If the file already exists, then it is deleted before creating a new one.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultHeaderText Default header text
Top
Remarks

[Missing <remarks> documentation for "T:Ab4d.SharpEngine.Utilities.StlExporter"]

See Also