Class STLFileLoader
Implements
Constructors
constructor
-
Returns STLFileLoader
Properties
Readonlyextensions
Defines the extensions the stl loader is able to load. force data to come in as an ArrayBuffer we'll convert to string if it looks like it's an ASCII .stl
Readonlyname
Defines the name of the plugin.
StaticDO_ NOT_ ALTER_ FILE_ COORDINATES
Defines if Y and Z axes are swapped or not when loading an STL file. The default is false to maintain backward compatibility. When set to true, coordinates from the STL file are used without change.
Methods
import Mesh
-
importMesh(
meshesNames: any,
scene: Scene,
data: any,
rootUrl: string,
meshes: Nullable<AbstractMesh[]>,
): booleanImport meshes into a scene.
Parameters
- meshesNames: any
An array of mesh names, a single mesh name, or empty string for all meshes that filter what meshes are imported
- scene: Scene
The scene to import into
- data: any
The data to import
- rootUrl: string
The root url for scene and resources
- meshes: Nullable<AbstractMesh[]>
The meshes array to import into
Returns boolean
True if successful or false otherwise
- meshesNames: any
load
-
Load into a scene.
Parameters
- scene: Scene
The scene to load into
- data: any
The data to import
- rootUrl: string
The root url for scene and resources
Returns boolean
true if successful or false otherwise
- scene: Scene
load Asset Container
-
Load into an asset container.
Parameters
- scene: Scene
The scene to load into
- data: string
The data to import
- rootUrl: string
The root url for scene and resources
Returns AssetContainer
The loaded asset container
- scene: Scene
STL file type loader. This is a babylon scene loader plugin.