Marching cubes algorithm
The marching cubes algorithm is an algorithm that renders an isosurface defined by a scalar field. The metaballs define just such a surface, so the algorithm is perfect for this situation! There is a video that showcases and partially explains the algorithm, embedded below.
Additionally, there is a web page that thoroughly explains the algorithm and supplies source code for a c implementation of the algorithm. This is the URL: http://paulbourke.net/geometry/polygonise/. My plan is now to adapt that implementation to my project, which will mean writing it in C# as well as using the Unity API. Naturally. the original author Paul Bourke deserves a lot of credit, and will be credited in the code as well as in the project report (and on this blog, obviously). The source code going together with the great explanation is exactly what I needed to be able to easily use this algorithm in the project. Thanks Paul!
Kommentarer
Skicka en kommentar