Hello Mariosmic!
Wonderful pictures of your work!
You must be a much better programmer than i am..
But - som critics - some suggestions:
To see at your pictures - there seems to be just the parts which are seen in architectural models later. The technical part - needed to construct such things in reality - seems to be not implemented.
example 1: every wall in the nature needs a foundation - maybe not so much in Rome, but here by me in Salzburg in the Alps - the foundation needs to be deep enough that its situated under the possible freeze-depth.
suggestion: ad an ajustable/switchable strip-foundation - and if it should follow different Z-Axes - dont follow the angled surface direct - you have step it.
example 2:
There are very different fences manufactured out in reality.
You will never get all the different possibilities get working. You obviously tried to create often used possibilities at your position in Rome.
I think it would be better to work out some simple archetypic themes
to begin with simple wall, next step could be vertical columns with palings between, next some wooden fences and so on..
But - all depended on real fences from real producers
Do You know the objects from
archilib.od.pagesperso-orange.fr/
here the : Garde-corps
A fence or a railing with this functionality compared with Your 3D - abilities with different Z-hights - that it would be the goal.
What i am working now in this direction is to make something simpler than Your solution - moved parallel to the original polygon. Railings are positioned parallel to the slab - moved out or in. (here normally moved out for better mounting and less sealing-problems) But my solution will take some time because i am not so good at mathematics and have to do mostly at trial and error..
https://www.youtube.com/watch?v=YxJ2i2ybRGE
picture of normal austrian detail..
https://www.dropbox.com/s/sruwmxu88pyn65j/Railings_parallel_to_slab.jpg?dl=0
AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia