UNPKG

@jscad/modeling

Version:

Constructive Solid Geometry (CSG) Library for JSCAD

10 lines (8 loc) 269 B
/** * Performs a shallow clone of the give geometry. * @param {path2} geometry - the geometry to clone * @returns {path2} a new path * @alias module:modeling/geometries/path2.clone */ const clone = (geometry) => Object.assign({}, geometry) module.exports = clone