We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 090244d commit f115187Copy full SHA for f115187
1 file changed
src/gh/diffCheck/diffCheck/df_poses.py
@@ -22,6 +22,19 @@ class DFPose:
22
xDirection: list
23
yDirection: list
24
25
+ @staticmethod
26
+ def from_rh_plane(rh_plane):
27
+ """
28
+ Create a DFPose object from a Rhino Plane object.
29
+
30
+ :param rh_plane: the Rhino Plane to convert
31
+ :return: a DFPose object representing the same pose as the input Rhino Plane
32
33
+ return DFPose(
34
+ origin = [rh_plane.Origin.X, rh_plane.Origin.Y, rh_plane.Origin.Z],
35
+ xDirection = [rh_plane.XAxis.X, rh_plane.XAxis.Y, rh_plane.XAxis.Z],
36
+ yDirection = [rh_plane.YAxis.X, rh_plane.YAxis.Y, rh_plane.YAxis.Z])
37
38
def to_rh_plane(self):
39
"""
40
Convert the pose to a Rhino Plane object.
0 commit comments