Skip to content
Development version. Forge is under active development and testing. APIs, behaviour, coverage and verification results may be incomplete or change without notice; published PASS results are not a support guarantee or production-readiness claim.

Shape.at

Place a shape at absolute coordinates or align it to another Shape.

Related guide

Signature

Shape.at(self, x=0, y=0, z=0, *, anchor=<Anchor.CENTER: 'center'>, child=<Anchor.CENTER: 'center'>)

Use when

Use shape.at(x, y, z) for geometric placement. Box, Cylinder, Cone and Sphere support their documented anchors. Use shape.at(target) for the supported shape-to-shape CENTER alignment.

Limits

Shape-to-shape alignment currently supports CENTER-to-CENTER only. at() is geometric placement/alignment; selecting a support face for a feature is the job of Shape.on().

Parameters

  • x — Absolute X coordinate in mm, or a target Shape for shape-to-shape alignment.
  • y — Absolute Y coordinate in mm. Leave at 0 when x is a target Shape.
  • z — Absolute Z coordinate in mm. Leave at 0 when x is a target Shape.
  • anchor — Datum on this primitive that is placed at the requested coordinate. Defaults to Anchor.CENTER.
  • child — Child datum for shape-to-shape alignment. Currently only Anchor.CENTER is supported.

Example

pin = Cylinder(d=8, h=20, axis=Axis.X).at(10, 0, 5, anchor=Anchor.LEFT)
centered = Sphere(5).at(body)