generative modeling for Rhino
It takes me a whole Morning to type the 256 arrays.And it takes much more time to caculate the 3d metaball.
Do you have a 3d marching cube/tetrahedra script you could share? I am having issues at the moment with using 2d metaballs in x,y,and z but this produces a fairly useless set of planar curves. What I want to achieve is a solid mesh from input curves, I then wish to analyse this in GSA and optimise using galapagos. this is what i have got so far with 2d metaballs... thanks
Marching cubes is an algorithm for finding potentially interesting voxels in a grid and disregarding the bulk of uninteresting ones. It's not something that stands by itself. The 2D metaballs in Grasshopper use Marching Squares, I once wrote a Marching Cube-ish sort of thing but it never entirely worked.
This looks fantastic! At the moment I am trying two options, one going to processing via ghowl and meshing there. The other exporting the point cloud from the metaballs and meshing using MeshLab which gets a pretty good mesh. I'd love to be able to keep it in grasshopper though, would you be happy to share ur .Net script?
The code comes from one of the processing add ons.I unzip the *.jar file and translated the java class into C# class.Nothing new.
Using pocessing1.51 is a better choice for U.
eli, how did you do it?
The key is to make sure all the levels have the same number of points when you divide the isocurves. So if on one level you only have 1 isocurve, divide it in to 30; 2 isocurves divide each into 15 (15x2=30); 3 isocurves divide each by 10; etc. Then make sure that the levels are a proper distance apart, and that the isocurves are divided densely enough. You still may get some artifacts in your mesh, which is why I am interested in what panhao has done here, although I don't know any scripting to translate and java classes to C# classes, although it may be "nothing new".
eli, thank you for your response.