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

Trim ​

Cut a surface with a plane, another surface or a solid and keep the side you want.

Trim: Start: a surface and a cutting plane compared with Result: the side you kept.
Prism help example. Cut a surface with a plane, another surface or a solid and keep the side you want. Untrim brings the cut-away part back. View full size

In the app

Pick the surface, then what cuts it: a plane, another surface or face, or a solid. Choose which side stays. Use Keep to flip if the wrong side goes.

How to use ​

  1. Choose Trim. Its panel opens on the right with numbered steps; anything you selected first fills matching inputs.
  2. Pick Surface to trim (surface).
  3. Pick Cutting tool (plane, surface, face or solid) (solid, surface, face, plane).
  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
KeepThe front side (where the tool's normal points, or outside a solid)The front side (where the tool's normal points, or outside a solid), The back side (the other side, or inside a solid)
Delete the cutting tool afterwardOn

Script it ​

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

python
import cadkit as cad

cad.run("trim_surface", slots={"Surface to trim": ..., "Cutting tool (plane, surface, face or solid)": ...}, keep="The front side (where the tool's normal points, or outside a solid)", delete_the_cutting_tool_afterward=True)