aframe-csg-meshs
An A-Frame component for runtime Constructive Solid Geometry. It is based on ThreeCSG which it contains as a source copy in a slightly modified version.
Properties
The component takes three optional properties:
- union
- subtract
- intersect
All properties work the same: They are Selector-Arrays to reference the corresponding meshs that will be unioned with / subtracted from / intersected with the meshs of this entity. The full object tree is considered.
Installation
Browser
Install and use by directly including the aframe-csg-meshs/index.js:
My A-Frame Scene
npm
Install via npm:
npm install aframe-csg-meshs
Then require and use.
;;