A project I'm currently working on requires turning a 2D shape (simple but random 2D shape, typically a face extracted from another object, can be tilted) into a Point Cloud of some specific specs (thickness, point distance, density, etc.) for further process.
So the idea I came up with is using Geometry Nodes to:
- use Extrude Mesh node to turn the 2D shape into a 3D geometry
- generate a box shaped point cloud bigger enough to cover the entire geometry
- use the method from this tutourial https://www.youtube.com/watch?v=v8pI_f-S6bg to delete all the points outside of the geometry
However, I get some fairly weird artifacts, as you can see in the attached screenshots. So besides those points inside the 'boundary', there are also some bits outside of the boundary somehow didn't get deleted as expected. I can swap the 'boundary' geometry to some default meta shapes (cube, torus, etc.), and the whole thing works just fine.
Any idea of why it acts like that, and how I can fix it?
(I know I didn't close the bottom of the extruded mesh, but that's not the issue and doesn't help either as I've tried.)
Here's the blend file: https://drive.google.com/file/d/1rLv0_lpGD8k9FVskyj3TkI3ukkh5WNZS/view?usp=sharing