I am making a railway generator in geonodes. I have made the rail, and have a good-ish idea of how to make the rest, but i am having a problem with making the placement of the ties (bolts, nails, spikes?). I want to place these using a mesh line, so I can change the resolution, but I can’t think of how to, without having to do it manual, which seems to make procedural modeling pointless.
Below is an illustration of the problem
The line that is highlighted has been duplicated and separated from the rail mesh.
It doesn’t give the same level of control a procedural setup would.
Yellow is where I want the mesh lines to go, but how, when using normals, can I stop a line on red?
Any help welcome, thanks
Sorry if I don’t understand the issue, but you should be able to place a mesh line anywhere with geonodes, right?
How do the red and yellow lines in your picture relate?
What do you mean by “stop a line on red”?
What do you want to do with normals?
I want the faces that are facing straight up, or, the most straight up, in this case yellow, to have a line on each. However, red is as flat as yellow and i don’t want a line on that. I could use a bool to get rid of the red line, but bools slow stuff down so much. How do you move a line to a face? Face to points and instance?
Use Boolean Math Nodes to combine/mix selections… e.g. you can use the fact that one set of lines have negative Z and the others not to filter out the “unwanted” selection using an AND node, like so:
…where the noodles going off-frame will be your other selection.
Good luck!
1 Like
What is the And node? An option in math node?
Hello Everyone,
Thank you for your help.
This is how far I have got:
this is the node group:
I can then use a merge by distance to make it a single line, but, and this is what I am now stuck on, how can I put a Mesh line, in place of each line?
And I have it!!! Mesh to Curve on the single lines, and then curve to points gives you the same result as a mesh line.
Result: