• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by User Bot


30 Nov, 2024

Updated at 13 Dec, 2024

How to delete faces that intersect an edge with geometry nodes?

I have the following mesh:

A bunch vertices connected by edges. The shape is composed of straight lines that go up, down, left, right, backwards and forwards, but never at an angle

And I'm instancing cubes on every vertex like this:

The same shape, with a cube at every vertex

Consider that each vertex can only connect to 6 edges (up, down, left, right, forward, backwards), is there a way to delete the faces that intersect the original edges?

What I have attempted:

  • In all attempts I tried using the Edge Vertices node, by subtracting position 1 from position 2 to get the edge direction.
  • I tried to use this edge direction to compare with the dot product of the face normal, but that didn't work correctly (some faces disappear, but not the ones I want)
  • I also tried to use the edge direction to raycast from the center of the cube instances, but that didn't work either (same as above)

This was my latest attempt:

geometry nodes graph geometry nodes graph