Overview of copper3d AI Assist Mental Model
The AI Assist feature in copper3d acts as a frontend interface for interactive segmentation. It does not communicate with AI models directly. Instead, it follows this workflow:
- Captures user prompts (points, boxes, scribbles, or lassos) on the current slice.
- Sends a serializable
AiPromptPayloadto the developer via theonPromptcallback. - Receives a mask result from the developer and renders it into a separate 'scratch' layer using
aiApplyMask.
This scratch layer acts as a sandbox. Changes are not applied to the actual mask layer until aiCommitToLayer(...) is called. Entering AI mode hides existing layer masks and shows the AI overlay; exiting restores the original state.