Never Please Meanies

    threejs-slice-geometry

    0.2.2 • Public • Published

    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

    Keywords

    none

    Install

    npm i threejs-slice-geometry

    DownloadsWeekly Downloads

    1,541

    Version

    0.2.2

    License

    none

    Last publish

    Collaborators

    • tdhooper