Make a new torus at (0, 0, 0), which revolves around the Y axis.
The Wonderland Engine instance to use this mesh for
The inner radius of the torus.
The outer radius of the torus. The thickness of the slice is the outer radius minus the inner radius, therefore, this must be bigger than the inner radius.
Optional
options: TorusOptionsOptional arguments for torus 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 procedural torus.