Marching Cubes example

P

PhilC

Does anyone know of sample code showing how the marching cubes
algorithm may be implimented using Python?

Ref:- http://local.wasp.uwa.edu.au/~pbourke/geometry/polygonise/

I can set up the cubes and test to see if their vertices are inside
the isosurface.

I can produce a resulting "metaball" but definition is poor and some
faces are reversed. (but not in any pattern that I can effectivly
debug).

My particular issues are:-

1) Finding the point at which the isosurface cuts the cube being
tested. Using a mid point produces poor results.

2) Getting the resulting triangular faces to all face outwards.

I'd prefer not to get into using VTK or matlab if possible.

Thanks :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,240
Latest member
เพิ่มไลค์|LikePro

Latest Threads

Top