three-csgmesh
v1.0.0
Published
Constructive solid geometry utilities for three.js.
Maintainers
Readme
three-csgmesh
Constructive solid geometry utilities for three.
Install
npm install [email protected] three-csgmeshUsage
import CSG from "three-csgmesh";
const a = CSG.fromMesh(meshA);
const b = CSG.fromMesh(meshB);
const result = a.subtract(b);
const resultMesh = CSG.toMesh(result, meshA.matrix, meshA.material);Notes
- This package currently targets
[email protected]. - The default export is
CSG, so the import style remainsimport CSG from "three-csgmesh".
Publish
npm login
npm publish