MeshFaceNormals outputs empty list when using a meshed surface C#

Hi all,
i m struggeling at the moment to get a list of the normals of the meshfaces of a mesh.

It works when i plug the planarMesh component in, but when i am using a mesh made out of a surface the MeshFacewNormalsList is empty.

Maybe someone can enlighten me.

Thanks!

Try M.FaceNormals.ComputeFaceNormals();

1 Like

Hi @Mostapha,

thanks for the answer.

I found that in the rhino commons before, but i dont get it, its returning a boolean value, how do i get the normal?
Thanks!

// calculate face normals
M.FaceNormals.ComputeFaceNormals();
// copy your code from the screenshot here
//...

o man, now i feel stupid.
Thanks a lot.

Also thought i would have been uploaded the script, not just the screenshot.