2
$\begingroup$

Using this geometry nodes graph, I've created a grid of a simple "tile" mesh.

a grid of tiles and the corresponding geometry nodes

I want to project this grid onto (or restrict this grid to) the surface of another mesh (the parent of these nodes), in this case a 2d torus. A solution for a circle would work too.

a simple torus

I can't quite figure out how to reconcile the "points" output by the Instance on Points node with the geometry of the torus. Is there a node I can use? Is there a better approach altogether? Thanks in advance for any help!

$\endgroup$
1

1 Answer 1

2
$\begingroup$

I'll just assume you want to get this result:

enter image description here

This is where the Raycast node comes in handy.

With the help of this node you send a "ray" from a certain point in a certain direction. If this ray hits an obstacle, a Hit is returned.

With the help of this value you can now selectively delete the geometry from which the raycast was sent:

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ Thank you very much! Raycast was the ingredient I was missing. And yes, this is exactly the shape I was going for. One slight difference is that I'd like to use a custom mesh (named "tile" in the screenshot) instead of the geometry generated by the Grid node. So my final solution with the addition of the Raycast node looks like this, for anyone curious: i.sstatic.net/fmMXx.png $\endgroup$
    – fluke
    Commented Aug 10, 2022 at 8:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .