babylonjs-serializers 5.42.2 → 5.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babylon.stlSerializer.js +36 -9
- package/babylon.stlSerializer.js.map +1 -1
- package/babylon.stlSerializer.min.js +1 -1
- package/babylon.stlSerializer.min.js.map +1 -1
- package/babylonjs.serializers.d.ts +2 -1
- package/babylonjs.serializers.js +36 -9
- package/babylonjs.serializers.js.map +1 -1
- package/babylonjs.serializers.min.js +1 -1
- package/babylonjs.serializers.min.js.map +1 -1
- package/babylonjs.serializers.module.d.ts +5 -2
- package/package.json +3 -3
|
@@ -1594,6 +1594,7 @@ export * from "babylonjs-serializers/stl/stlSerializer";
|
|
|
1594
1594
|
}
|
|
1595
1595
|
declare module "babylonjs-serializers/stl/stlSerializer" {
|
|
1596
1596
|
import { Mesh } from "babylonjs/Meshes/mesh";
|
|
1597
|
+
import { InstancedMesh } from "babylonjs/Meshes/instancedMesh";
|
|
1597
1598
|
/**
|
|
1598
1599
|
* Class for generating STL data from a Babylon scene.
|
|
1599
1600
|
*/
|
|
@@ -1606,9 +1607,10 @@ export class STLExport {
|
|
|
1606
1607
|
* @param binary changes the STL to a binary type.
|
|
1607
1608
|
* @param isLittleEndian toggle for binary type exporter.
|
|
1608
1609
|
* @param doNotBakeTransform toggle if meshes transforms should be baked or not.
|
|
1610
|
+
* @param supportInstancedMeshes toggle to export instanced Meshes. Enabling support for instanced meshes will override doNoBakeTransform as true
|
|
1609
1611
|
* @returns the STL as UTF8 string
|
|
1610
1612
|
*/
|
|
1611
|
-
static CreateSTL(meshes: Mesh[], download?: boolean, fileName?: string, binary?: boolean, isLittleEndian?: boolean, doNotBakeTransform?: boolean): any;
|
|
1613
|
+
static CreateSTL(meshes: (Mesh | InstancedMesh)[], download?: boolean, fileName?: string, binary?: boolean, isLittleEndian?: boolean, doNotBakeTransform?: boolean, supportInstancedMeshes?: boolean): any;
|
|
1612
1614
|
}
|
|
1613
1615
|
|
|
1614
1616
|
}
|
|
@@ -3050,9 +3052,10 @@ declare module BABYLON {
|
|
|
3050
3052
|
* @param binary changes the STL to a binary type.
|
|
3051
3053
|
* @param isLittleEndian toggle for binary type exporter.
|
|
3052
3054
|
* @param doNotBakeTransform toggle if meshes transforms should be baked or not.
|
|
3055
|
+
* @param supportInstancedMeshes toggle to export instanced Meshes. Enabling support for instanced meshes will override doNoBakeTransform as true
|
|
3053
3056
|
* @returns the STL as UTF8 string
|
|
3054
3057
|
*/
|
|
3055
|
-
static CreateSTL(meshes: Mesh[], download?: boolean, fileName?: string, binary?: boolean, isLittleEndian?: boolean, doNotBakeTransform?: boolean): any;
|
|
3058
|
+
static CreateSTL(meshes: (Mesh | InstancedMesh)[], download?: boolean, fileName?: string, binary?: boolean, isLittleEndian?: boolean, doNotBakeTransform?: boolean, supportInstancedMeshes?: boolean): any;
|
|
3056
3059
|
}
|
|
3057
3060
|
|
|
3058
3061
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-serializers",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.43.0",
|
|
4
4
|
"main": "babylonjs.serializers.js",
|
|
5
5
|
"types": "babylonjs.serializers.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
18
|
-
"babylonjs-gltf2interface": "^5.
|
|
17
|
+
"babylonjs": "^5.43.0",
|
|
18
|
+
"babylonjs-gltf2interface": "^5.43.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|