Merges multiple geometries into one.
var merge = require('geom-merge') var cube = require('primitive-cube')() var sphere = require('primitive-sphere')() var g = merge([cube, sphere])
geometries- array of geometry objects
Returns new geometry with merged attributes and cells from provided geometries.
Note 1: Each geometry object requires at least
positions (array of [x, y, z]) and
cells (array of [i, j, k]) properties. Other properties like
normals will be merged as well if available in all geometries.
Note 2: This module doesn't perform CSG operations
MIT, see LICENSE.md for details.