General Category > ASL Scripts

Marching Cubes - Mesh of the Surface from a Collection of Points


Have you ever had a collection of points and wanted a mesh that corresponded to the surface of those points?

In my never ending quest to bring physics (or to effects that look mostly like physics) to Anim8or through scripting, I was working with smoothed particle hydrodynamics (SPH) to simulate fluids.  Using Anim8or points as particles, I was able to write scripts to simulate the fluid action, but had no real way of rendering just points.  The actual SPH script is still in development.

One popular way to extract a surface mesh from a point cloud is to use a technique called Marching Cubes.

Below is an implementation of the the Marching Cubes Algorithm in ASL.  The documentation for usage is within the script itself.

i will try... nice if post a "image preview" for help us, hehehehe
Thanks NIcke! :)

Haven't tried this yet but I like what you're doing here. Thanks, NickE. Perhaps somewhere down the road you could have a look at noise removal or smoothing of the point clouds as well (I'm confident there exists numerous techniques for these things). (:


[0] Message Index

Go to full version