Monte Carlo Packing Problem
Hi fellow Foamers,
I'm attempting to write a Monte Carlo packing algorithm that can pack particles of any shape into a simple container (box, cylinder, sphere). I am using OF's mesh handling, since I think if will be easier to manipulate complex objects with OF rather than reinvent the wheel and make my own. I have a few questions:
1. How do I grab the coordinate locations of a particular patch and then copy new point locations back to the mesh?
2. How can I tell if one patch overlaps another one after I have moved and rotated a particle?
I have implemented quaternions and septernions to handle the rotation and translation, but I'm having issues on how to extract the points of the faces and then copying new points back. Currently my domain is basically two spheres with surface meshes on them. They are floating free, with no bounding box, as I want to draw the container after the packing is finished. I have tried to use some of the dynamicFvMesh types and none of them fit my needs. Right now I am using a static mesh without the dynamicFvMesh capabilities. Thoughts?
Trouble Grabbing Points
When I try to grab the points using:
|All times are GMT -4. The time now is 15:47.|