AlphaPrism is in active development: features may change and you may run into bugs. Keep backups of your work.Known issuesReport a bug
Skip to content

Subtract ​

Cut one body out of another.

Subtract: Start: a body and a cutter (highlighted) compared with Result: the cutter's shape removed.
Prism help example. Cut one body out of another. Only the first body is kept; the tool bodies are removed unless Keep tool bodies is on. View full size

In the app

Pick the body to cut from, then the bodies to cut with. A surface can cut a surface too: an open tube or sheet is closed off in your mind's eye, whatever part of the target lies inside it is removed, and the cut is filled with the tool's walls (or left open by turning that off).

How to use ​

  1. Choose Subtract. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick Body to cut from (solid, surface).
  3. Pick Tool bodies (solid, surface, one or more).
  4. Adjust the settings and check the preview in the viewport.
  5. Confirm in the panel to apply, or cancel to leave the model unchanged. Applied changes are one undo step.

Settings ​

SettingDefaultValues
Keep tool bodiesOff
Fill the cut with the tool's wallsOn

Script it ​

Command name subtract. See Python scripting and the command reference.

python
import cadkit as cad

cad.run("subtract", slots={"Body to cut from": ..., "Tool bodies": [...]}, keep_tool_bodies=False, fill_the_cut_with_the_tool_s_walls=True)