Project Multiple Surfaces to Faces (Windows to Walls)

Hi,

I’m trying to project multiple surfaces (windows) to their respective wall. I’ve gone about this three ways, but they all produce duplicate windows or create a weird cloud of windows. I have attached Rhino 7 and Grasshopper files.

It seems like I have a list problem but not sure which.

Thanks in advance.


Project Glazing to closest Surface.3dm (113.2 KB)
Project glazing to closest surface.gh (26.6 KB)

Project glazing to closest surface Edited V0.gh (23.8 KB)

Thanks for the reply @Quan_Li

Just a couple of questions.

  1. The distance of the windows from the wall will vary. Is there a way to make this parametric, maybe by measuring closest point or something?
  2. Is there a way to construct the plan so that it works with both planar and curved windows?
  3. I couldn’t get your script to work on my end. The windows didn’t move to the correct spot. I stopped a few steps short of your script because I just wanted the windows to intersect with the walls.

Project glazing to closest surface Edited V1.gh (28.3 KB)

I changed it a bit.

1 Like

1. The distance of the windows from the wall will vary. Is there a way to make this parametric, maybe by measuring the closest point or something?

  • Try my second script.

2. Is there a way to construct the plan so that it works with both planar and curved windows?

  • Better upload the file of the curved windows, I am not sure I can imagine those correctly.

3. I couldn’t get your script to work on my end. The windows didn’t move to the correct spot. I stopped a few steps short of your script because I just wanted the windows to intersect with the walls.

  • Maybe it’s because of plugin installation, but you got one place wrong in your script, two wires, not one.

This worked great! Thank you so much @Quan_Li

Just wondering where you got the Line MDL component from. I looked up peacock by Daniel Abalde on food4rhino and didn’t see it there?

Here in the Peacock.

1 Like

This one needs a different approach.

If you need, I suggest you open a new thread. I guess this one is interesting enough to get community responses.

Hi @Quan_Li

The second script you sent already works for surfaces that have a profile and surfaces that are curved. Fortunately, no further action is required. Also thanks for the Peacock snip.

Thanks again for your help.

Hi @Quan_Li

I’ve been using the script above. However, now I’m testing it on a double-loaded corridor, and the script seems to break. The script creates points on every surface perpendicular to the curve when there’s a double-loaded corridor or multiple rooms on one level.

I’ve tried to shorten the crv LineMDL produces in case there is a tolerance issue, however, this doesn’t seem to help.

I am also using Brep | Line instead of Brep | Curve since that seems to be a step in the right direction.

Any idea what’s going on here?

Thank in advance!

Double Loaded Corridor.3dm (13.9 MB)
Double Loaded Corridor.gh (1.1 MB)

Double Loaded Corridor Edited V0.gh (1.1 MB)

Just graft the Line and flatten the Brep.


image

1 Like

I tried this a couple of times yesterday but it wouldn’t work. Restarted my computer and it works now. Thanks again.

You are welcome!