UNPKG

@jscad/modeling

Version:

Constructive Solid Geometry (CSG) Library for JSCAD

16 lines (13 loc) 551 B
const concat = require('./concat') const create = require('./create') /** * Append the given list of points to the end of the given geometry. * @param {Array} points - the points (2D) to append to the given path * @param {path2} geometry - the given path * @returns {path2} a new path with the appended points * @alias module:modeling/geometries/path2.appendPoints * @example * let newpath = appendPoints([[3, 4], [4, 5]], oldpath) */ const appendPoints = (points, geometry) => concat(geometry, create(points)) module.exports = appendPoints