Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/compas/geometry/_primitives/plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ def transform(self, matrix):
The transformation matrix.

"""
point = transform_points([self.point], matrix)
normal = transform_vectors([self.normal], matrix)
point = transform_points([self.point], matrix)[0]
Copy link
Member

@gonzalocasas gonzalocasas Feb 26, 2019

Choose a reason for hiding this comment

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

Was this a bug? Does it fail without this change? Maybe you could add a little unit test for it (especially if it was failing before and your change fixes it)..

Copy link
Member

Choose a reason for hiding this comment

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

sorry, I just see the linked issue ;)

normal = transform_vectors([self.normal], matrix)[0]
self.point.x = point[0]
self.point.y = point[1]
self.point.z = point[2]
Expand Down