Skip to content

EntropyCanvas::Geometry::MeshPrimitives

Procedural mesh generators for common primitives. More…

#include <MeshPrimitives.h>

Name
MeshDatabox(float size =1.0f)
Generate a unit box centered at origin.
class EntropyCanvas::Geometry::MeshPrimitives;

Procedural mesh generators for common primitives.

Returns fully-formed MeshData with positions, normals, UVs, and indices.

static MeshData box(
float size =1.0f
)

Generate a unit box centered at origin.

Parameters:

  • size Edge length (default 1.0)

Return: Mesh data with 24 vertices (separate per face for hard edges), 36 indices


Updated on 2026-01-26 at 17:14:35 -0500