Skip to content

jasperdevir/MarchingCubes.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

MarchingCubes.js

Implementation of marching cubes mesh generation algorithm within Three.JS. Inspired by Paul Bourke's: "Polygonising a scalar field" (1996). https://paulbourke.net/geometry/polygonise/

Usage

Import MarchingGrid class.

import { MarchingGrid } from 'MarchingCubes.js';

Initialise MarchingGrid with position, dimensions, and material, generate the mesh, and add it to a scene.

const grid = new MarchingGrid(position, dimensions, material);
grid.genMesh();
grid.add(scene, true, false);

About

The Marching Cubes algorithm in Three.JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published