Lib.mesh.generate.TorusMesh - tixl3d/tixl GitHub Wiki
Generates a procedural three-dimensional torus mesh which can be rendered with [DrawMesh] , [DrawMeshUnlit] and [DrawMeshHatched] among others. Also known as: Donut
For a simple and interactive tutorial on the TiXL rendering pipeline, see [HowToDrawThings].
It can also become the source for a particle system with [MeshVerticesToPoints] or [PointsOnMesh]. To import static 3D meshes from other programs refer to [LoadObj].
Name (Relevancy & Type) | Description |
---|---|
Radius (Single) | Ring size. |
Thickness (Single) | Ring thickness. |
Segments (Int2) | Controls the tesselation. 1. Along the Radius. 2. Along the Thickness. |
Spin (Vector2) | Slides the geometry. 1. Along the Radius. 2. Around the Thickness. |
Fill (Vector2) | Cuts and compresses / slides the geometry. X. Along the Radius. Y. Along the Thickness. |
SmoothAngle (Single) | Defines at what angle two adjacent faces share a smoothing group. |
Name | Type |
---|---|
Data | T3.Core.DataTypes.MeshBuffers |
Please help use to improve this documentation. Feel free to improve the description.
⚠ Everything else is automatically generated and will be overwritten regularly.