"OpenFoam NOT-SURFACE" is a lot harder than OpenFoam Surface.
Yeah ... the dense lattice all the way through the body is created by ASSURING that tidbit centroids land exactly on the surface of the mesh. The way to do that is to create a "COFFIN" of tidbits around the object being foamed. Basically ... you take a double mesh ... a mesh nested in a mesh. And you make Tetrahedrons throughout both meshs but with a parameter than makes the TETS OBEY The surfaces. That's the key to making sure the outermost tidbits have nice shape. The innerones may or may not be so nicely shaped. You can see that in the bunny.
The outer coffin surface used to WRAP the target surface (bunny) could be an ellipsoid or maybe even a convex hull for the bunny. Then the hull or ellipsoid should be resized to be at least a few whole tidbits (diameter) larger than the bunny ... measured from surface to surface. This is a fudgy factor that will take time to optimize.
So the whole KEY is to pic the proper -a value for TETGEN to size da foam nice.
The next tricky step if to re-process the tetrahedron centroids to the voronoi function to use them as "SITES". This is the thing that guarantees that the foam tracks well or obeys the surface.
I hope this make some sense as a descriptive narrative for the how to.
You can e-mail me about this if you would like more information or would like to SKYPE me about the process.
And the final step is to BOOLEAN the carefully created tidbits the the proper surface so as to cut all the surface aligned tidbits in half.
Sometimes all this is JOB-SECURITY for me ... LOL. I get some folks wanting me to run the process for them ... even after I teach them.
Yeah ... the dense lattice all the way through the body is created by ASSURING that tidbit centroids land exactly on the surface of the mesh. The way to do that is to create a "COFFIN" of tidbits around the object being foamed. Basically ... you take a double mesh ... a mesh nested in a mesh. And you make Tetrahedrons throughout both meshs but with a parameter than makes the TETS OBEY The surfaces. That's the key to making sure the outermost tidbits have nice shape. The innerones may or may not be so nicely shaped. You can see that in the bunny.
The outer coffin surface used to WRAP the target surface (bunny) could be an ellipsoid or maybe even a convex hull for the bunny. Then the hull or ellipsoid should be resized to be at least a few whole tidbits (diameter) larger than the bunny ... measured from surface to surface. This is a fudgy factor that will take time to optimize.
So the whole KEY is to pic the proper -a value for TETGEN to size da foam nice.
The next tricky step if to re-process the tetrahedron centroids to the voronoi function to use them as "SITES". This is the thing that guarantees that the foam tracks well or obeys the surface.
I hope this make some sense as a descriptive narrative for the how to.
You can e-mail me about this if you would like more information or would like to SKYPE me about the process.
And the final step is to BOOLEAN the carefully created tidbits the the proper surface so as to cut all the surface aligned tidbits in half.
Sometimes all this is JOB-SECURITY for me ... LOL. I get some folks wanting me to run the process for them ... even after I teach them.