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.with_appearance

Assign one fixed display color to the final body without changing physical material semantics.

Related guide

Signature

Shape.with_appearance(self, color)

Use when

A model should open with a specific visual color while material, density and BOM behavior remain unchanged.

Limits

This first contract accepts one opaque fixed #RRGGBB color and applies it to the final body. Call it after geometry operations.

Parameters

  • color โ€” Display color as a #RRGGBB hex string.

Example

body = Box(40, 30, 10).with_appearance("#FFD21A")