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.

geometry-constructors

Direct 3D primitives and 2D profile constructors.

Related guide

Members

Box

Create a native rectangular solid around a declared anchor datum.

Box(length, width, thickness, *, anchor=<Anchor.CENTER: 'center'>)

Cylinder

Create a cylindrical solid centred around the origin by default.

Cylinder(*, d, h, axis=<Axis.Z: 'Z'>, anchor=<Anchor.CENTER: 'center'>)

Cone

Create a native cone or tapered cylinder (frustum).

Cone(*, d, top_d=0, h, axis=<Axis.Z: 'Z'>, anchor=<Anchor.CENTER: 'center'>)

Sphere

Create a sphere centred on the origin unless another anchor is given.

Sphere(radius, *, anchor=<Anchor.CENTER: 'center'>)

Rectangle2D

Create a rectangular 2D profile.

Rectangle2D(width, depth)

RoundedRectangle2D

Create a native rounded-rectangle 2D profile.

RoundedRectangle2D(width, depth, radius)

Circle2D

Create a circular 2D profile by diameter or radius.

Circle2D(*, d=None, r=None)

Polygon2D

Create a closed named or unnamed polygon profile.

Polygon2D(points, *, plane='XY', ids=None, world=False)