GithubHelp home page GithubHelp logo

boka-git / clipper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arendvw/clipper

0.0 0.0 0.0 3.31 MB

Implementation for the clipper library in rhino

License: Boost Software License 1.0

C# 97.65% PowerShell 2.35%

clipper's Introduction

Clipper for Grasshopper

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

  • Curves, Splines, Arcs need to be converted to polygons
  • No support for splines, nurbs
  • Only in-plane operations are supported (all geometry will be projected onto it's 2d space)
  • Circular fillets are represented as polygons

Installation

Copy the ClipperTools.dll and ClipperComponents.gha into the components folder of your Grasshopper plugin. Make sure they are not blocked.

Source code is available on github, available under the open source (permissive) Boost licence, free to use for any purpose.

Examples

Examples can be found on github in the folder examples

Offsets
  • Example 1: Simple single polygon offset (Star offset)
  • Example 2: Multiple polygon offsets (Urban plan)
Boolean operations
  • Example 3: Moire effect
Minkowski Sums
  • Example 4: Slide an object over another

Version

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.

TODO

  • Documentation
  • Api documentation
  • Rhino Plugin to offer functionality on the command line

Credits

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.

Contact

Arend van Waart [email protected]

clipper's People

Contributors

arendvw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.