I want to create a mesh, for example with the marching cubes algorithm. I have a vector of voxels, consisting of a X,Y,Z position and a RGB color code. I obtained the voxels using space carving from a set of unordered images.
at http://cpp.criticaldamage.com/index.php/Marching_Cubes_Field_Tesselation, there is an implementation of marching cubes, but it uses a list of densitiy values as an input. and i dont know how to convert my voxels to a densities.
any help, either with converting my input or with using another implementation, would be appreciated!
thanks a lot!