Skip to content

Marching Cubes Implementation for Grasshopper and Rhinoceros

Notifications You must be signed in to change notification settings

gyetis/marching-cubes-gh

Repository files navigation

Marching Cubes Implementation for Grasshopper and Rhinoceros

Marching Cubes algorithm takes raw point cloud data and generate a mesh out of it by using 256 possible polygon configurations within a cube.

Citation

Marching Cubes algorithm was introduced by Lorensen and Cline in 1987. Please visit https://dl.acm.org/citation.cfm?id=37422 for the details.

Prerequisites

Rhinoceros v.5/v.6

IronPython >= 2.7.5

GHPython

Installation

Open Rhinoceros and Grasshopper.

Drag "MarchingCubes.p2.7.5.0.ghpy" file directly into the Grasshopper window.

Just in case the failure of installation in Rhinoceros v5., "marchingcubes_rhino_gh.py" code can be copied into GHPython component.

Usage

After installation, open Rhinoceros and Grasshopper.

Marching Cubes component will be under Mesh > Triangulation

Decide the variables below and link them to the component:

point_cloud : Raw point cloud data

cube_dim : Integer for cube dimension

cube_num : Desired total number of cubes

iso_level : Float for isolevel

Releases

No releases published

Packages

No packages published

Languages