rigComponent 0.1.1
RigKit pack API - rigComponent
Loading...
Searching...
No Matches
rigkit::ecs::CSphere Struct Reference

Icosphere-tessellated sphere. More...

#include <rigComponent/src/CSphere.h>

Public Attributes

int subdivisions = 1
 Icosahedron refinement steps: 0 = base 20 faces, each step is 4x more faces.

Detailed Description

Icosphere-tessellated sphere.

Speaks rig.geometry.sphere.

Stays parametric like the 2D primitives (CRegularPolygon, CStar, ...): radius and subdivisions remain editable, and present rebuilds triangles fresh each frame (verticesOf(const CSphere&) in PrimitiveVertices3D.h) rather than baking a one-shot CMesh. Reach for CMesh directly instead when a shape needs per-face colors or a one-off hand-authored form.


The documentation for this struct was generated from the following file:
  • packs/rigComponent/src/CSphere.h