manifold-3d
    Preparing search index...

    Using Manifold

    In your project root folder run:

    npm install --save manifold-3d
    

    To start using Manifold, import it and initialize it:

    import Module from 'manifold-3d';

    const wasm = await Module();
    wasm.setup();
    const { Manifold } = wasm;

    Intro example

    const {cube, sphere} = Manifold;
    const box = cube([100, 100, 100], true);
    const ball = sphere(60, 100);
    const result = box.subtract(ball);
    Warning

    Since Manifold is a WASM module, it does not automatically garbage-collect like regular JavaScript.

    You must manually delete() each object constructed by your scripts (both Manifold and CrossSection). See discussion.

    See Examples.