Trim

The Trim command cuts and deletes selected portions of an object at the intersection with another object.

Steps

1. Select the cutting objects.
2. Select the parts of objects to trim away.

Command-line options

ExtendLines=Yes/No

Determines whether or not when line objects are used as cutting objects, imaginary extensions of the line are used. This makes it unnecessary to manually extend lines that do not intersect the objects to trim.

UseApparentIntersections=Yes/No

Determines whether or not curves are trimmed in relation to the view. They do not need to intersect in 3-D space. They only need to appear to intersect in the active viewport.

This option does not apply to surfaces.

Notes

If it is difficult to select the parts to trim off, use the Split command and then delete the unwanted parts.
Use the Untrim command to remove a trimming boundary from a surface.
When trimming a surface with a curve in a plan parallel view like the default Top, Front, and Right view, the cutting curve is projected on the surface in the view direction.
When trimming a surface with a planar curve in an angled parallel or a perspective view like the default Perspective view, the cutting curve is projected on the surface in a direction perpendicular to the curve plane.
When trimming a surface with a 3-D curve in an angled parallel or a perspective view, the cutting curve is pulled on the surface by closest points.

Trimmed Surfaces

A trimmed surface has two parts: a surface that underlies everything that defines the geometric shape, and trimming curves that either trim away the outside portion of the surface or cut holes in its interior.

Those trimming curves exist on the underlying surface. The underlying surface may be larger than the trim curves, but you won't see the underlying surface because Rhino doesn't draw anything for the part of the surface that is outside the trim curves.

Only the underlying surface defines the actual geometry of the shape. The trim curves do not define a surface -- they only mark which part of the surface is to be considered trimmed away.

If you have a trim curve that runs diagonally across a surface, the trim curve itself doesn't have any real relationship to the control points structure of the surface. You can see this if you select such a trimmed surface and turn its control points on. You'll see the control points for the whole underlying surface, which doesn't necessarily have any connection with the trim curves.

You can remove the trim curves and get back to the underlying surface using the Untrim commands to remove holes or outside boundaries.

When you have a trimmed surface whose underlying surface is much larger than the outside trimming boundary, you can use the ShrinkTrimmedSrf command to shrink the surface back so that it is only large enough to hold the trimming boundaries and doesn't have a large extra unused area.

Untrim

The Untrim command removes trim curves and surfaces joined at trim curves from a surface.

Obeys crease splitting setting

Steps

4 Select the edge boundary of a trimmed surface.

Command-line options

KeepTrimObjects=Yes/No

Yes

Determines whether or not the original trimming objects and joined geometry are separated and retained or deleted.

KeepTrimObjects=Yes (left); KeepTrimObjects=No (right).

AllSimilar

Removes all trimming curves on the edge of a trimmed surface, or if a hole edge is selected, all holes on the same face will be deleted.

Original object (left), All=No, (center), All=Yes (right).

RemoveEdge

The RemoveEdge command retrims the selected trimmed surface edge with a line, extensions of the adjacent edges, or a curve.

Steps

4 Select surface edges to delete.

Command-line options

KeepTrimObjects=Yes/No

Determines whether or not the original trimming objects are retained.

Mode

ReplaceWithLine

Replace the edge with a line between the edge end points.

ExtendSideEdges

The two surrounding edges extend.

The edges must meet within surface boundary to give successful results.

SelectCurve

Edges will be replaced using the selected curve to retrim.

UntrimAll

Obeys crease splitting setting

The UntrimAll command untrims all trimming curves on an object, both edges and holes in one operation.

UntrimBorder

The UntrimBorder command untrims the exterior border leaving holes trimmed.

UntrimHoles

The UntrimHoles command untrims interior holes leaving exterior borders trimmed.

See also

Split and trim curves and surfaces