I have a box that I need to populate uniformly. Apparently, populate 3D gives only random points and not uniformly distributed points. So I used the zombie solver with on mesh and P_Law(repulsive) goals. This makes the points get distributed uniformly on the surface of the box. Is there any goal like ‘inside closed mesh’ to achieve what I need?
You could convert the mesh to a Brep (polysurface) and then apply Point In Brep to a 3D grid of points to cull only those inside.
The problem with that is it just tests for point inside the mesh and I lose all the points as they get repelled away out of the mesh due to the P_law goal
Without posting your code, I have no clue.
I think the code I posted in this thread might be what you need: