Create a new prismoid/pyramid hybrid. If the mesh is a prismoid, then an extrusion will be created.
The Wonderland Engine instance to use this mesh for
The cross-section of the prismoid.
The scale of the bottom base. If 0, then an inverted pyramid will be created.
The scale of the top base. If 0, then a pyramid will be created.
The offset of the bottom base.
The offset of the top base.
The maximum angle for automatic smoothing. if null, then no automatic smoothing will be done.
Optional
hints: HintMapThe WL.Material to use for the base triangles.
The WL.Material to use fot the side triangles.
Protected
premadeA merge map that defines how to create a manifold from the submeshes.
Protected
submeshesThe list of submeshes to assign to this group.
Get the number of submeshes inside this MeshGroup.
Sets autoDispose to true (marks as auto-disposable). Chainable method.
Rotate all submeshes and the manifold by a given quaternion. Chainable method.
Scale all submeshes and the manifold by a given per-axis factor. Chainable method.
Transform all submeshes and the manifold by a given matrix and normal matrix. Chainable method.
Optional
normalMatrix: mat3Translate all submeshes and the manifold by a given translation vector. Chainable method.
Scale all submeshes and the manifold by a single factor. Chainable method.
Static
fromStatic
fromWLEMeshCreate a new MeshGroup from a WL.Mesh.
WARNING: The submeshes array and the manifold mesh will have their ownership tranferred to this object. If you modify them later, they will be modified here as well, possibly corrupting the mesh. To avoid issues with this, do a deep clone of the inputs
A WL.Mesh instance.
A WL.Material instance. Null by default.
Static
makeGenerated using TypeDoc
A procedural mesh class that handles both prismoids and pyramids due to their similarily.