Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

proc.ops (op families)

The op families procgen's own ops are defined in. Each family module exposes ops(deps...), the map of op id to op def that a .procPack returns; the packs under procgen.package/procPacks/ register them, the same asset any author outside this package contributes a family through. This index re-exports the family modules by name (sources, geometry, normals, subdivide, extrude, bevel, sweep, boolean, decimate, sdf, groups, attribute, topology, curves, field, points, instances, prefabs, entity, scene, textures, sinks, sim), so a family is reached without knowing which folder it sits in.

local families = require("@builtin::systems.procgen.proc.ops")
local defs = families.sources.ops(proc.geometry) -- { ["mesh.box"] = def, ... }

Calling a registered op is a different surface: proc.ops.<family>.<op>(...) on the top-level proc module, and g.op.<id>({ ... }) inside a graph.

Part of @builtin::systems.procgen.proc.