Verbs

Typed calls for agents, and what each one returns.

Typed calls with schemas, for agents. A verb never runs code and never changes the host’s document; the host decides what to commit.

Verb Kind Function What it does
sample_scatter construct samples.scatter Stable, seeded, nested sample points over the faces of a mesh, as Points geometry with ids, anchors, spacing and levels.
sample_frames construct samples.frames A smoothed tangent line field, the principal curvatures and the anisotropy at each sample, from the mesh the samples were scattered on.
sample_rebind construct samples.rebind Samples carried across a re-cook: each follows its face family and three corners, by persistent id, onto the edited mesh.
sample_inspect query samples.inspect One page of samples with their ids and the chosen attributes: positions, normals, frames, anchors, levels or parents.
points_to_hint construct samples.toHint Points geometry as the bytes of a hint IPC points table, for hint’s table_read.
points_from_hint construct samples.fromHint Points geometry from the bytes of a hint IPC points table that hint’s table_write made.
roles_inspect query roles.inspect The roles a value holds with their counts, and one page of points or primitives with their roles.
roles_assign construct roles.assign A copy of a value with host roles added to or removed from chosen points or primitives.
pipeline_check query roles.checkPipeline Whether a planned chain of verbs gets each step the roles it needs, judged from the verbs’ role signatures without running them.
lineage_trace query roles.traceLineage Where chosen elements of a value came from, followed back through the lineage of the values a host keeps.
mesh_boolean construct roles.boolean The exact boolean of two closed meshes that keeps persistent ids and roles, marking faces inside or outside and points on the seam.
form_measure query form.measure Whether a mesh is closed, the shape of each edge, and each face’s planarity and area, every answer with its evidence class.
structure_relate query form.relate How two faces, or two sets of faces, of a mesh relate: touching, adjacent, parallel, orthogonal, coplanar, each with its evidence class and a caption.
source_box construct sources.box An axis-aligned box of eight points and six outward quads, with a flat normal per face and persistent ids.
source_sphere construct sources.sphere A UV sphere of triangles from rings latitude bands and segments longitude divisions, with smooth normals and persistent ids.
source_plane construct sources.plane A flat grid in the XZ plane, width along x and height along z, of quads facing +Y with persistent ids.
source_cylinder construct sources.cylinder A closed faceted cylinder along Y: two flat polygon caps and side quads, with a hard rim and persistent ids.
geometry_translate construct geometryOps.translate A copy of a geometry with every position moved by an offset; normals, ids, roles and topology unchanged.
geometry_transform construct geometryOps.transform A copy of a geometry under an affine map from translate, rotate and scale or a matrix, about a pivot, with normals moved correctly.
geometry_translate_points construct geometryOps.translatePoints A copy of a geometry with chosen points moved by their persistent id, exactly or spread by a falloff; ids, roles and topology unchanged.
geometry_merge construct geometryOps.merge Polygon geometries combined into one in list order, attributes unioned, persistent ids kept unique and roles kept.
mesh_extrude construct meshEdits.extrude A copy of a polygon mesh with chosen faces pushed along their normals, each joined to its old edges by side walls.
mesh_inset construct meshEdits.inset A copy of a polygon mesh with chosen faces shrunk so each edge moves a set distance inward, framed by rings of new quads.
mesh_loop_cut construct meshEdits.loopCut A copy of a polygon mesh with new edge loops through the ring of four-corner faces an edge starts.
mesh_fuse construct meshEdits.fuse A copy of a polygon mesh with points within a distance welded into one and the faces that collapse dropped.
mesh_bevel construct meshEdits.bevel A copy of a polygon mesh with chosen edges between two four-corner faces chamfered, flat or rounded.
mesh_edge_slide construct meshEdits.edgeSlide A copy of a polygon mesh with the points of chosen edges slid along their neighbouring edges; the topology is unchanged.
mesh_subdivide construct meshEdits.subdivide A copy of a polygon mesh subdivided one level, linearly or by Catmull-Clark.
mesh_twist construct meshEdits.twist A copy of a polygon mesh with every point turned about an axis by an angle proportional to its coordinate along it.
mesh_bend construct meshEdits.bend A copy of a polygon mesh bent into a circular arc along an axis, its extent along the axis turning through a set angle.
mesh_copy_to_points construct meshEdits.copyToPoints One copy of a polygon mesh at each point of another geometry, scaled by the point’s pscale and optionally turned to its normal.
mesh_revolve construct meshEdits.revolve A triangle mesh made by turning a polyline, a geometry’s points in index order, about a coordinate axis through the origin.
mesh_sweep construct meshEdits.sweep A triangle mesh made by sliding one polyline along another: every point is a rail sample plus a section sample, with no turning.
mesh_loft construct meshEdits.loft A triangle mesh through two or more polylines in order: each is resampled, and rows are interpolated linearly between neighbouring sections.
io_import_stl construct fileFormats.importStl Polygon geometry from a binary or ASCII STL file, corners welded exactly, in metres and the kernel’s frame, with ids in file order.
io_import_obj construct fileFormats.importObj Polygon geometry from an OBJ file’s vertices and faces, quads and n-gons kept, in metres and the kernel’s frame, with ids in file order.
io_import_gltf construct fileFormats.importGltf Polygon geometry from a GLB or glTF 2.0 JSON file’s default scene, its node tree flattened in f64, with ids in file order.
io_export_obj construct fileFormats.exportObj An OBJ file of polygon geometry in a target unit and up axis, numbers in the shortest decimal that reads back to the same f64.
curve2_intersect query curve2.intersect Every crossing, touch and overlap between pairs of 2D curves, or of one curve with a set, named by id.
curve2_closest query curve2.closest The point of the nearest of a set of 2D curves to a point, with its parameter, distance and tangent.
curve2_measure query curve2.measure Length, signed area, centroid and bounds of a 2D curve, chain or region.
curve2_trim query curve2.trim A 2D curve trimmed at its hits with a boundary set, keeping the piece that holds a picked point or parameter.
curve2_extend query curve2.extend A 2D line or arc extended at one end along itself to its first hit on a boundary set.
curve2_split query curve2.split A 2D curve split at parameters, points or cutter curves, or a chain at vertices or inside segments, with persistent ids.
curve2_fillet query curve2.fillet A true-arc fillet of a given radius between two 2D curves, or at a chain’s corners, with the curves trimmed to its ends.
curve2_chamfer query curve2.chamfer A chamfer line across the corner of two 2D curves, or at a chain’s corners, by two distances or a distance and an angle.
curve2_offset query curve2.offset The offset of a 2D curve, chain or region by a signed distance, keeping lines, arcs and circles, with round, miter or bevel corners.