P3 point
#223
Replies: 2 comments 4 replies
-
I think p3 should be in global coordinates. It is the direction of the height axis of the element. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi, P3 (point3) is the vector (normalized) for the orientation of the elements local z-axis. import cadwork
import element_controller as ec
axis_start_point = cadwork.point_3d(0.,0.,0.)
axis_end_point = cadwork.point_3d(1200.,0.,0.)
axis_z_direction = cadwork.point_3d(0., -1., 0.) # orientation for point 3
ec.create_rectangular_beam_points(100., 200., axis_start_point,
axis_end_point,
axis_z_direction)
1547742446
import geometry_controller as gc
gc.get_p3(1547742446)
[0.000000, -1.000000, 0.000000] |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello everybody!
Does anyone know how p3 point works?
I always have problems with it.
Teorically, p3 point is normal vector's direction for the reference face. Therefore, if my p3=cadwork.point_3D(0,0,1) when I create a beam my reference face would be perpendicular to z axis.
Is that ok?
When I put that in practice, it doesn't work like that, and my beam is created in a strange position.
Thank you very much in advance
Beta Was this translation helpful? Give feedback.
All reactions