Lib.mesh.generate.SphereMesh - tixl3d/tixl GitHub Wiki

SphereMesh

in Lib.mesh.generate


Generates a procedural three-dimensional UV sphere mesh which can be rendered with [DrawMesh] , [DrawMeshUnlit] and [DrawMeshHatched] among others.

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].


Input Parameters

Name (Relevancy & Type) Description
Radius (Single) Controls the size.
Segments (Int2) Controls the quantity of segments.
The first value controls the division along the equator of the sphere.
The second value controls the division from pole to pole.

Outputs

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.

⚠️ **GitHub.com Fallback** ⚠️