Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Marching Cubes - Mesh of the Surface from a Collection of Points  (Read 991 times)

NickE

  • Full Member
  • ***
  • Posts: 157
    • View Profile

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.
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 571
  • Neirao
    • View Profile
Re: Marching Cubes - Mesh of the Surface from a Collection of Points
« Reply #1 on: January 04, 2017, 07:01:25 pm »

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

Unobtainium

  • Newbie
  • *
  • Posts: 22
  • Engineer dabbling in various technical arts
    • View Profile
Re: Marching Cubes - Mesh of the Surface from a Collection of Points
« Reply #2 on: March 20, 2017, 01:47:16 pm »

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). (:
Logged