Skip to content

QuadMesh

in Lib.mesh.generate

Generates a procedural three-dimensional tessellated mesh which can be rendered with [DrawMesh], [DrawMeshUnlit] and [DrawMeshHatched] among others. Also known as: Plane, Quad

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

Also consider using [CylinderMesh].

Input Parameters

Name (Relevancy & Type) Description
Segments (Int2) Defines the tessellation
X: Left to Right
Y: Top to Bottom
Stretch (Vector2) Controls the scaling:
X: Width
Y: Height
Scale (Single)
Pivot (Vector2) Offsets the position of the pivot point (center).

This is helpful to change the point around which the Mesh rotates / along which it is scaled.
Center (Vector3) Transforms the position of the pivot
Rotation (Vector3) Rotates the Mesh

Outputs

Name Type
Data T3.Core.DataTypes.MeshBuffers