Documentation / Node reference / geo nodes

geo/M2DClip

Cuts 2D manifolds with a line and keeps one side, or both.

Manifold Operations

Cuts each 2D manifold with a line, placed by `origin` and `direction`, and keeps the side the direction points to, the other side, or both as two objects. It does what a geo/M2DBoolean intersection with a large rectangle does, without the rectangle to size and place.

The cut is made in world space: an input with a transform is cut where it is drawn, and the result carries no transform of its own. Only 2D manifolds are cut. Everything else passes through untouched.

Parameters

Name Type What it does
mode UInt8 KEEP_ABOVE · KEEP_BELOW · KEEP_ALL Which side to keep: the side the direction points to (above), the other side (below), or both as two objects.
origin Vector2 A point on the cutting line.
direction Vector2 Perpendicular to the line. It points to the side kept as above. Normalized on cook.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.