add
Adds all faces of a Shape to the scene with the given color.
Each face (Path) of the shape is added as a separate scene item so that individual faces can be depth-sorted and lit independently.
open override fun add(path: Path, color: IsoColor, originalShape: Shape?, id: String?, ownerNodeId: String?)
Adds a single Path (polygon face) to the scene.
Parameters
path
The polygon face to add
color
The base color for this face
originalShape
Optional reference to the parent Shape (used for hit-test grouping)
id
Optional unique identifier for this scene item
ownerNodeId
Optional identifier of the Compose node that owns this item