So I have a 2D wireframe (no faces) on the left and I would like to achieve the result on the right with geometry nodes. Any ideas on how to do this?
I lost a couple of hours to try to solve this puzzle with no success.
-
$\begingroup$ It's actually a hard problem to solve I think. You can start exploring the convex hull node. $\endgroup$– GorgiousFeb 8 at 14:23
-
$\begingroup$ Sure, that seems to be one of the ways to go. but how would you do it if you did know from which edge you'd start? I know how to get the shortest path but not how to get the longest one. This was reffering to the comment you deleted $\endgroup$– Vic MarcoFeb 8 at 14:25
-
$\begingroup$ Convex hull doesn't seem to help at all since some of the edge vertices disappear inside it $\endgroup$– Vic MarcoFeb 8 at 14:27
-
$\begingroup$ Yeah I deleted the comment because I realized it was wrong. :) Convex hull doesn't cut it I know, but it's a step forward. You can also explore this method youtube.com/watch?v=mnSg5iOS4QU with the new, experimental simulation nodes $\endgroup$– GorgiousFeb 8 at 14:30
-
$\begingroup$ I thougt about turning this wireframe into mesh of faces, but still have no idea how to achive it. I would know how to fill multiple closed mesh loops but I dont know how to separate these rectangles that create this wireframe mesh from one another. Any suggestions in this direction? $\endgroup$– Vic MarcoFeb 8 at 14:30
1 Answer
If your mesh also has faces, you can solve this by checking the number of faces connected to the edges, and feeding only this selection into the node Delete Geometry
:
...But since your mesh has no faces, this is not a solution for you (but maybe for others).
-
$\begingroup$ Well, it doesn't have faces, that's the problem and that's why I specified that it's 2D wireframe and not mesh faces. I appreciate you trying to help, though, thanks $\endgroup$ Feb 8 at 13:35
-
$\begingroup$ @VicMarco And that's why you're awarding a downvote? ...it would have been great if you explained that in your question... $\endgroup$– quellenform ♦Feb 8 at 13:36
-
$\begingroup$ Sorry I didn't mean to downwote as an offense to you, Do you get some negative consequensces if your post gets downvoted? I'll remove the downvote if that's the case. I just thought it was not useful to the solution of the probelm. $\endgroup$ Feb 8 at 13:40
-
$\begingroup$ @VicMarco If the answer itself is a solution (for a particular way), then a downvote is not adequate feedback. Then, in your place, I would simply not rate the answer at all. A downvote should be used when the answer is fundamentally wrong or misleading. $\endgroup$– quellenform ♦Feb 8 at 13:42
-
1$\begingroup$ @VicMarco, you can retract your downvote, I think. Thanks $\endgroup$– lemonFeb 8 at 13:48