Need Help with Procedural Railings in Blender Geometry Nodes

Hi everyone,

I’m pretty new to Blender and I’m working on a bridge model where I’ve extruded a cube along the X and Y axes. I want to add railings to the bridge procedurally using Geometry Nodes. However, I’m running into an issue where the railings aren’t sticking to the circumference of the bridge but are instead covering the entire cube, even extending over the path. I want the railings to be added only to the circumference.


Model View 1: 
https://drive.google.com/file/d/1zlgumvqF0MyncVT8G6tgnhjSyt7Ww4s9/view?usp=drive_link

Model View 2:
https://drive.google.com/file/d/1P32uv6rBrdlUA5cjXPvW3NrbyI1a_2DK/view?usp=drive_link

Geometry Node:
https://drive.google.com/file/d/1wrt-3T0__Ic1PYyVTstv_95ToVTvdkGR/view?usp=drive_link


I’ve attached images of my setup and the node tree for reference. I’d appreciate any help or pointers on how to fix this issue so that the railings only appear along the edges of the bridge.

Thanks in advance!

Pragun

PS:- Idk why but Blender doesn’t allow me to post images and drive links :frowning: