MeshFaceNormals come fare?

Questo è python in grasshopper di Rhino 7, però in qualche modo dovresti riuscire a farlo andare su Rhino 5…


mesh filter faces by angle.gh (6,1 KB)

import Rhino as rc

M.FaceNormals.ComputeFaceNormals()
normals = M.FaceNormals

faces = []
for i in range(M.Faces.Count):
    if rc.Geometry.Vector3d.VectorAngle(normals[i],V) < 0.2:
        faces.append(M.Faces[i])

M.Faces.Clear()
M.Faces.AddFaces(faces)
M.Vertices.CullUnused()

a=M
2 Mi Piace