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

Store Forge geometry and feature operations before SolidCraft executes them.

Related guide

Signature

Shape(kind: str, data: Any) -> None

Use when

Shape values are normally returned by constructors such as Box(), Cylinder(), Hole() and Sketch.extrude(), then transformed or combined with the supported Shape methods/operators.

Limits

Shape is only Forge’s description of the model. SolidCraft owns the final BRep and feature history; users normally do not instantiate Shape(kind, data) directly.

Parameters

  • kind — Forge node type. Public constructors set this; normal model code should not invent kind values.
  • data — Data stored for that node type. Public constructors and methods build this payload.

Example

body = Box(80, 50, 12)