@Mr_Sinter wrote:
Hi @all,
i would like to measure the normal-vector of a plane before and after rotation.
I only want those surfaces of a brep, which normal-vector in z-dir is -1 and lie at z=0:
for face in brep.Faces: plane_of_face = face.TryGetPlane() if int(plane_of_face[1].Normal[2]) == -1 and plane_of_face[1].OriginZ == 0: brepface_znormal1 = face
So my variable "brepface_znormal1" is the one which normal-vector I want to observe after rotation (user rotates and quits with "ESC").
Therefore I defined a function which gets called when Rhino fires "EscapeKeyPressed"-Event:def escape_key_pressed(a, b): znormal1_plane_of_face = brepface_znormal1.TryGetPlane() print "brepface_znormal1 normal-vector: %s"%znormal1_plane_of_face[1].Normal rhi.RhinoApp.EscapeKeyPressed += escape_key_pressed
"znormal1_plane_of_face[1].Normal" should give me a new Normal-Vector (after rotation), but I get same values as before the rotation....!?
I even tried it over GUID to identify the plane I want to observe, but this doesnt work either.Who finds the error?
Kind Regards
Mr Sinter
Posts: 1
Participants: 1