Unifying the normal vectors of mesh panels

Hi all, I have a mesh with some faces one by one their normal vectors have different direction, how can I unify them in a same direction?

There’s a Method for that exposed in R SDK:

Mesh must be valid and manifold. As the comments state: this attempts to cut the mustard (there’s numerous cases with weird/unsuitable/etc Topology… where this fails [for good reason] ). That said is available in GH

Anyway you should call Mesh.Normals.ComputeNormals() as a post action to that.

If you want a C# for that notify

Thanks a lot, this component doesn’t work in my model, it doesn’t make any differ.
maybe I should try expression . if x<0 : x*-1
is it true?

For a dome (i.e. easy) like Topology it should work (unless the Mesh is bananas).

So: Internalize your mesh in some parameter and post it here. Anyway you should always post a representative case per issue. Diagnosis from an image is not yet invented.

BTW: Get the attached as well (if the donor Mesh is OK and the Topology is “mild” … the Normals are as expected). You can input/try your Mesh in the first C# as well (but no extensive tests for an OK Mesh are included).

Mesh_Pattern_EntryLevel_V1B.gh (139.4 KB)