Module dagon.graphics.shapes
Basic geometric shape classes.
Description
The dagon module defines mesh and drawable classes
for common shapes: plane, quad, box, sphere, disk, cylinder, cone, capsule and torus.
These shapes are useful for prototyping, debugging, and as building blocks
for more complex geometry. All shapes are constructed with configurable
parameters and support rendering via the engine's mesh and drawable interfaces.
Classes
| Name | Description |
|---|---|
ShapeBox
|
A mesh representing a box (cuboid) with configurable extents. |
ShapeCapsule
|
A mesh representing a capsule (cylinder with hemispherical caps). |
ShapeCone
|
A mesh representing a cone. |
ShapeCylinder
|
A mesh representing a cylinder. |
ShapeDisk
|
A mesh representing a flat disk in the XZ plane. |
ShapePlane
|
A mesh representing a grid plane in the XZ plane. |
ShapeQuad
|
A simple quad (rectangle) drawable in 2D. |
ShapeSphere
|
A mesh representing a UV sphere. |
ShapeTorus
|
A mesh representing a torus. |