How to project multiple Breps on surface

Project multiple buildings on surface.gh (25.4 KB)

Hello!

I am trying to project multiple Breps (buildings) on a surface (slope). In the script I made the Brep moves to the lowest point where it intersects with the slope. It works when I set 1 Brep as the input but not when I set multiple Breps.

Can someone help me out! I have tried to graft and simplify here and there but it did not work yet.

Thanks.

1 Like

Try this.

1 Like


Project multiple buildings on surface_2025Mar25a.gh (17.3 KB)

1 Like

Thanks for helping, very clear script! But I would need not the closest point between curves but the furthest. Could you adjust the script?

Project multiple buildings on surface a.gh (12.8 KB)

Thanks for the help! As i understand the ‘box corners’ component is making a bounding box. Because the slope that i will eventually use it for is quite detailed i am afraid that the bounding box is not as precise as I want it too. It works good though! But do you think it could be a bit more accurate?

Thanks for helping, very clear script! But I would need not the closest point between curves but the furthest. Could you adjust the script?

For even non-uniform surfaces.
Project multiple buildings on surface b.gh (30.4 KB)


2 Likes


Project multiple buildings on surface_2025Mar25b.gh (20.6 KB)

2 Likes

The previous definition took into consideration only the edges while this one evaluates the entire base surface.
Project multiple buildings on surface c.gh (44.2 KB)

2 Likes

Different problem. Or is it :question:


Project multiple buildings on surface_2025Mar26.gh (27.4 KB)

1 Like

The difference between my two definitions.

2 Likes