Make a new cone. By default, it occupies a 1x1x1 bounding volume (radius 0.5, height 1).
The Wonderland Engine instance to use this mesh for
Optional
options: ConeOptionsOptional arguments for cone generation.
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.
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 cone approximation, implemented as a pyramid with a circular base.