STLExporter class

An exporter for the STL file format.

STL files describe only the surface geometry of a three-dimensional object without any representation of color, texture or other common model attributes. The STL format specifies both ASCII and binary representations, with binary being more compact. STL files contain no scale information or indexes, and the units are arbitrary.

// Instantiate an exporter
final exporter = STLExporter();

// Parse the input and generate the STL encoded output
final result = exporter.parseMesh(mesh);

Constructors

STLExporter.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

exportMesh(String fileName, Mesh mesh, [String? path]) → void
exportScene(String fileName, Scene scene, [String? path]) → void
parse(Scene scene) String
parseMesh(Mesh object, [bool usingParse = false]) String