Appearance
Geometry and Sketching DSL
This module is the broad surface that includes sketching, selectors, paths, and features. For intent-first imports, prefer:
trueform/dsl/sketchfor sketching/profiles/path builderstrueform/dsl/featuresfor feature operationstrueform/dsl/selectorsfor selector/query helpers
Geometry: Datums and Sketches
datumPlane(id, normal, origin?, deps?, opts?) -> DatumPlane(opts.xAxissupported)datumAxis(id, direction, origin?, deps?) -> DatumAxisdatumFrame(id, on, deps?) -> DatumFramesketch2d(id, profiles, opts?) -> Sketch2D(opts supportsentities)plane(id, width, height, result?, opts?) -> Plane
Geometry: Sketch Primitives
sketchLine(id, start, end, opts?) -> SketchLinesketchArc(id, start, end, center, direction, opts?) -> SketchArcsketchCircle(id, center, radius, opts?) -> SketchCirclesketchEllipse(id, center, radiusX, radiusY, opts?) -> SketchEllipsesketchRectCenter(id, center, width, height, opts?) -> SketchRectanglesketchRectCorner(id, corner, width, height, opts?) -> SketchRectanglesketchSlot(id, center, length, width, opts?) -> SketchSlotsketchPolygon(id, center, radius, sides, opts?) -> SketchPolygonsketchSpline(id, points, opts?) -> SketchSplinesketchPoint(id, point, opts?) -> SketchPoint
Geometry: Sketch Constraints
sketchPointRef(entity, handle?) -> SketchConstraintPointRefsketchConstraintCoincident(id, a, b) -> SketchConstraintsketchConstraintHorizontal(id, line) -> SketchConstraintsketchConstraintVertical(id, line) -> SketchConstraintsketchConstraintParallel(id, a, b) -> SketchConstraintsketchConstraintPerpendicular(id, a, b) -> SketchConstraintsketchConstraintEqualLength(id, a, b) -> SketchConstraintsketchConstraintDistance(id, a, b, distance) -> SketchConstraintsketchConstraintAngle(id, a, b, angle) -> SketchConstraintsketchConstraintRadius(id, curve, radius) -> SketchConstraintsketchConstraintTangent(id, a, b) -> SketchConstraintsketchConstraintConcentric(id, a, b) -> SketchConstraintsketchConstraintPointOnLine(id, point, line) -> SketchConstraintsketchConstraintCollinear(id, a, b) -> SketchConstraintsketchConstraintMidpoint(id, point, line) -> SketchConstraintsketchConstraintSymmetry(id, a, b, axis) -> SketchConstraintsketchConstraintFixPoint(id, point, opts?) -> SketchConstraint
Headless solve entry points:
import { solveSketchConstraintsDetailed } from "trueform"import { createSketchConstraintSolveSession } from "trueform"
Examples:
Profiles
profileRect(width, height, center?) -> ProfileprofileCircle(radius, center?) -> ProfileprofilePoly(sides, radius, center?, rotation?) -> ProfileprofileSketchLoop(loop, opts?) -> ProfileprofileRef(name) -> ProfileRef
Paths and Axis/Plane Helpers
pathPolyline(points, opts?) -> Path3DpathSpline(points, opts?) -> Path3DpathHelix(opts) -> Path3DpathSpiral(opts) -> Path3DpathSegments(segments) -> Path3DpathLine(start, end) -> PathSegmentpathArc(start, end, center, direction?) -> PathSegmentaxisVector(direction) -> AxisSpecaxisDatum(ref) -> AxisSpecaxisSketchNormal() -> ExtrudeAxisplaneDatum(ref) -> PlaneRef