@doodle3d/clipper-lib

Boolean operations and offsetting library in Javascript

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@doodle3d/clipper-lib
12646.4.2-b5 years ago5 years agoMinified + gzip package size for @doodle3d/clipper-lib in KB

Readme

ClipperLib
forked from Javascript Clipper

Description

The Javascript Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.
Javascript Clipper is a port of Angus Johnson's Clipper library:
LIVE DEMO: demo.html>
Information and examples:
Donate Javascript Clipper Project:
Use cases:
  • Over 1500 schools in the UK uses Javascript Clipper in Digimap for Schools service. Digimap for Schools is an online mapping service for use by teachers and pupils. Read more:
and
Javascript Clipper Web Site

Features

  • Line and polygon clipping - intersection, union, difference & xor
  • Line and polygon offsetting with 3 types of joining - miter, square and round
  • Polygons can be of any shape, including self-intersecting polygons
  • Minkowski Addition and Minkowski Difference functions included
  • The library is written in Javascript
  • Comprehensive documentation
  • Demos use inline SVG and Canvas libraries
  • The library is significantly faster than commercial alternatives
  • Uses Tom Wu's fast big integer library
  • UMD support

Categories

Algorithms, Graphics

Links

License

Boost Software License (BSL1.0)