2
$\begingroup$

I have a closed mesh line (no faces) which is the outlines of a city street system. This is the result of a complicated Geometry Nodes setup which I've now converted to mesh to simplify the file. I use the outline to create sidewalks: first extrude it up to be higher than the streets, then extrude the upper edges outward to create the surface. I want the extrude to be an even offset, the new edge being parallel to the original but the default extrude gives different result around rounded/sharp corners.

I suppose, what I need is to retrieve the normals of the vertical faces because those seem to point in the right direction and use those vectors as the offset for the extrude node?

This answer must be close but I really don't understand that node setup and am not sure if it could be applied to my case.

Result looks good here: twice extruded extrude is uneven between rounded and non rounded corners here: extrude uneven use the face normal vectors? normals

$\endgroup$

1 Answer 1

3
$\begingroup$

for extrude with even thickness you could do this enter image description here

the value in the divide is the thickness, and the z in the vector is the height

(btw, using the connected option here in the merge by disntace is pointless because they won't connect since they are not connected 😜)

$\endgroup$
3
  • $\begingroup$ This answers the part of the setup that I couldn't do myself, the vector for the offset is perfect, just what I was looking for. However it doesn't output the right geometry, the nodes need to be adjusted on the geometry level. May I ask you to change it so it outputs the geometry shown in the question, and upload a higher resolution image - so I can accept your answer, so it is more useful to others also? Or you can use this screenshot of the adjusted setup if you like: imgur.com/a/yety8R1 $\endgroup$
    – Booth
    Commented Aug 24, 2023 at 8:09
  • $\begingroup$ I suppose so. this would be the second extrude in your example. (this image is a linked image from discord btw) $\endgroup$
    – shmuel
    Commented Aug 24, 2023 at 16:35
  • $\begingroup$ Your answer helped me out and I'd like to accept it. Could you simply take the image under the link in my previous post and replace the image in your answer with it? The node setup that solves the issue is the same I only adjusted the extrude node and inserted the other extrude so it outputs the correct geometry. Also I used a higher res image so the text is readable. $\endgroup$
    – Booth
    Commented Aug 26, 2023 at 21:30

You must log in to answer this question.

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