Offset curve in wrong direction

Hello

I got a cube that I want to create some windows, the problem is that the offset of the panel is going in the opposite way in two faces even if the normals of the 4 faces are correct (see pic 1,2)
This is happening in this simple example and also in more complex geometry (see pic 3)
How can I fix this so the offset always goes in the same direction?

Thanks for your attention




BUILDING FACADE 3.gh (41.9 KB)

Just use the normals of each individual window surface, not the facade normals to construct your offset planes.

BUILDING FACADE 4.gh (40.9 KB)

1 Like

World-xy-plane might be not very relyable for offsetting in this case. Just connect the crvs planes.


hth
Ferry

btw with the clean tree-component you could get rid of the empty branches in your def.

1 Like

BUILDING FACADE 3_re.gh (38.0 KB)

2 Likes

yeah that was it,thanks for taking the time to reply :smiling_face_with_three_hearts:

One way to make sure curves all offset in the same direction is to run them through flip curve, with one of the input curves as a guide curve. More reliable than that is to use Sasquatch’s “flip curve clockwise” component", which avoids the possibility that the guide curve goes the wrong way in definitions intended to be usable with a wider variety of inputs.

I dont understand why even thought mi original brep has the correct normals (black vectors in image) the brep | plane component creates funky seams in the resulting curves (green vectors in image)

this causes problems because when I try to extrude inwards the resulting windows some of them extrude outwards so I used the flip component to fix the incorrect normals using the normals of the original geometry, dont know if its the slickest approach but it works for me :laughing: