Api - Holes Class
Hierarchy
- Holes
Implements
Index
Constructors
Properties
Constructors
constructor
-
Parameters
-
holeRadius: number
Hole radius.
-
points: IPoint[]
Array of points for origin of each hole.
-
Optional ids: string[]
Optional array of corresponding path ids for the holes.
Returns Holes
-
Properties
paths
Generated using TypeDoc
Create an array of circles of the same radius from an array of center points.
Example:
//Create some holes from an array of points var makerjs = require('makerjs'); var model = new makerjs.models.Holes(10, [[0, 0],[50, 0],[25, 40]]); var svg = makerjs.exporter.toSVG(model); document.write(svg);