Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 579 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 579 Bytes

Three.js Slice Geometry

Slice three.js geometry with a plane.

Usage

var plane = new THREE.Plane(new THREE.Vector3(0, 0, 1), 0);
var geom = new THREE.BoxGeometry(1, 1, 1);
geom = sliceGeometry(geom, plane);
var material = new THREE.MeshBasicMaterial({ wireframe: true });
var mesh = new THREE.Mesh(geom, material);
scene.add(mesh);

Builds

Examples

https://tdhooper.github.io/threejs-slice-geometry/examples