clipper

Node binding to C++ clipping library

clipper

Node binding to C++ clipping library found at http://www.angusj.com/delphi/clipper.php

To install this clipper module, perform the following:

  1. Add clipper: <version> to your package.json dependencies
  2. Use the command npm install
var clipper = require('clipper');

// clipper will use the default distance 1.415 when cleaning the polygon
clipper.simplify([10,10,100,10,100,100,10,100,10,50], 1);
  • coords: an array of vertices
  • scale_factor: the factor by which to scale each coordinate in coords
  • coords: an array of vertices