Hi all.
I am trying to create a connecting bridge between two houses located on opposite sides of a street or water channel. Something like Venice's Ponte dei Sospiri.
https://previews.123rf.com/images/efired/efired1511/efired151100008/48883498-Veduta-del-Ponte-dei-Sospiri-Ponte-dei-Sosp…
Does anybody know how to write a CGA that does this?
Many thanks!
Maybe you could use the occlusion queries (inside, overlaps, touches) with labels to check if the bridge intersects a specific building (with a specific label) on the other side. What might work is a recursive function that keeps translating (or repositioning) the bridge until the intersection test passes. You might want to keep track of the building position/scope on the first side or test for intersection on the first side as well. For example, you could create two faces, one for each side of the bridge and test if they are inside the buildings. Then, once you find a good position, you could recreate the bridge again from the two faces on the bridge's ends. Don't forget to make sure the recursion will always stop at some point.
Make a bridge rule for one of the buildings and move it into place. Here's a simple example:
Lot --> Building Bridge Building --> primitiveCube(50, 50, 50) Bridge --> primitiveCube(10, 10, 20) t(0,10,35)<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Hi! Thank you so much for the help
This would create a bridge, but I guess it wouldn't make sure that it hits a house on the other side of the street for instance. It could end in the space between two lots. Is there a way to make sure the two lots are connected?
Also it might not take in account the shape of the house (L shape for instance) or the width of the street in between.
Is there any way to keep these factors in account?
Thanks!
Fantastic! I must try this. It def could work.
A couple questions:
I guess the bridge should be as long as the street width parameter right?
"For example, you could create two faces, one for each side of the bridge and test if they are inside the buildings"
Should the face on the other side have the normals flipped?
How would you recreate the bridge again from these two faces?
Hi Cheryl
It worked very well, the bridges are connecting!
Right now I have set up a standard max lenght for a bridge before the operation gets canceled. Is it possible for a CGA rule applied to a lot to gather the width of the street in front of it?
I am referring to the StreetWidth Object Attribute. Is there a way to get it "into" the cga rule so I can use it to set up the exact lenght of the bridges?
Many thanks again
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.