How to Cull Surfaces with Opposite Normals

Cull Negative Surface_question.gh (3.3 MB)
Hi All

The file attached shows a set of surfaces with normals pointing inwards and out.
I have been trying to cull the surfaces with normals pointing inwards with the Dot component. However, the Vector B which it compares to doesnt seem to work very well as the surfaces in question are not in a single direction, thus the culling result is not accurate.

Can anyone suggest another way to cull the negative faces a bit better than I do? sorry it might seem a silly question!

Many thanks
Yutaka

Hi,

The trick is to define for each surface a vector going from the global center (average of all centers) to its center !

Cull Negative Surface_question.gh (3.3 MB)

Hi Magicteddy

Thank you for the “magic” reply :grinning:!! worked like a genius!

I have tried to run the same concept with a more rectilinear (asymmetrical) Layout and the center point vector seems distorted so the results were slightly off due to its asymmetrical nature.

I then tried to form another surface inside this skin (with offset curve in RH and extrude same height as the external skin) , then using divide domain/isotrim to break up the this interior skin into the same number of panels hoping to apply the same concept from their center points to the individual centers of the external surfaces. (pls see the Blob groups for the new attempts)
I think in concept this is logical but since the new inner skin isotrims have different order of indexes to their external counterparts, the resulting vectors were obviously all over the place.

I tried to use the Sort list but that didnt have any luck either, I am sure you can just make it with one elegant step so any suggestions would be much appreciated!

thanks a lot!

Yutaka
Cull Negative Surface_question_rectilinear configuration.gh (6.4 MB)

a tricky, not a universal solution.


Cull Negative Surface.gh (6.4 MB)

You could call the internal polyline to the rescue here.

I’m suprised such a regular pattern gives you randomly inverted normals. How are you creating the panels ?

Cull Negative Surface_question_rectilinear configuration.gh (6.4 MB)

Thank you so much ! Yes the file was received from another party and we have to provide details of cladding.
Thanks for the trouble !!:pray:t2:much appreciated ! God bless