Skip to content

mcneel/ClippingBox

Repository files navigation

ClippingBox

A small Rhino plug-in that adds two commands for creating and editing a clipping box — six depth-less clipping planes (one per box face, normals facing inward) whose half-spaces intersect to exactly the box interior. Only the model inside the box stays visible; everything outside is clipped. Because the clip region is pure geometry (no depth property), the gumball can move, rotate, and scale the whole box and the clipping follows natively.

Commands

  • ClippingBox — draw a box; it creates the six inward-facing clipping planes plus a wireframe outline, grouped together. The face editor opens immediately so you can adjust it.
  • ClippingBoxEdit — push/pull a box face: pick a face handle (the arrow at each face center), then drag along its axis (the opposite face stays put). Repeat; press Enter when done. You can also double-click a clipping box to start editing it.

Requirements

Rhino 8 (the plug-in targets the Rhino 8 RhinoCommon; it also loads in Rhino 9 via .NET roll-forward).

Build

dotnet build -c Release

Produces bin/Release/ClippingBox.rhp (with its .deps.json and .runtimeconfig.json — keep them alongside the .rhp).

Install (for testing)

Drag ClippingBox.rhp onto the Rhino window, or use PlugInManager → Install.

License

MIT — see LICENSE.

About

A Rhino plug-in to create and edit a clipping box — six clipping planes that show only the model inside the box.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages