Clipper for Grasshopper and Rhino
Clipper is a 2D polygon Clipper offering polygon boolean operations (clipping): Intersection, Join, Difference, XOR. Offsets for polygons and Minkowski Sum and Differences.
The good stuff:
- it accepts all types of polygons including self-intersecting ones
- it supports multiple polygon filling rules (EvenOdd, NonZero)
- it's very fast relative to the RhinoCommon counterparts
- it also performs line and polygon offsetting
- it's numerically robust
- it's free to use in both freeware and commercial applications
- it's open source
- it's native .NET
What is does not do
- Curved shapes are not supported, and are translated to polylines in the command.
- Only planar operations are supported
Install the clipper.rhi, this will install both the rhino plugin and the grasshopper plugin.
Source code is available on github, available under the open source (permissive) Boost licence, free to use for any purpose.
Usage in Rhino:
The commands OffsetPolyline and BooleanPolyline offer interactive commands for the clipper library. This means multiple sets of curves/polylines will be
Usage in Grasshopper:
Examples can be found on github in the folder examples
- Example 1: Simple single polygon offset (Star offset)
- Example 2: Multiple polygon offsets (Urban plan)
- Example 3: Moire effect
- Example 4: Slide an object over another
2017-02-15: Version 0.2.2: Update to new clipper version, release for Rhino WIP
2014-07-06: Version 0.1, first beta release
Current version is an early release. API's may change, components may change, and things may stop working in the way they do now in the future.
- Api documentation
Angus Johnson for writing the clipper library.
Thanks goes out to the friends at APTO who triggered the requirements for this plugin, and to Maarten Filius for the initial testing.
Arend van Waart Arend@studioavw.nl