Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

mesh

The primitive solids a graph starts from. A .mesh asset enters a graph through the asset node (procPacks/asset.procPack), as the Surface the mesh type states.

The definitions live in proc.ops.sources; this pack is what puts them in the op registry, so procgen.searchNodes("", { pack = "mesh" }) lists the family and procgen.describeNode("op.<id>") describes any one of them.

Ops

  • mesh.box — A box: the engine's cube primitive, scaled to size (per-axis dimensions)
  • mesh.sphere — A sphere: the engine's sphere primitive, scaled to radius
  • mesh.cylinder — A cylinder (axis +Y): the engine's cylinder primitive, scaled to radius and height
  • mesh.cone — A cone (apex +Y): the engine's cone primitive, scaled to radius and height
  • mesh.plane — A flat plane (XZ, facing +Y): the engine's plane primitive, scaled to size
  • mesh.capsule — A capsule (axis +Y): the engine's capsule primitive, scaled to radius and height
  • mesh.octahedron — An octahedron: the engine's octahedron primitive, scaled to size
  • mesh.torus — A torus (XZ plane): the engine's torus primitive, scaled uniformly to outer radius
  • mesh.rounded_box — A rounded box: the engine's rounded-box primitive, scaled to size (per-axis dimensions)
  • mesh.grid — A flat subdivided grid in the XZ plane, centered at the origin, facing +Y