Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compas_rhino/conversions/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def plane_to_rhino(plane):
:rhino:`Rhino.Geometry.Plane`

"""
return Rhino.Geometry.Plane(point_to_rhino(plane[0]), vector_to_rhino(plane[1]))
return Rhino.Geometry.Plane(point_to_rhino(plane[0]), vector_to_rhino(plane[1]), vector_to_rhino(plane[2]))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a COMPAS plane only has a point and a normal (it is not a frame). index 0 will return the base point, and index 1, the normal.

accessing index 2 on a plane object will raise a KeyError.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the redirection to the constructor that uses a point and a normal is correct. i think the functionality you are looking for is frame_to_rhino...



def frame_to_rhino_plane(frame):
Expand Down
Loading