Skip to content

Plane Transformation #262

@arpastrana

Description

@arpastrana

Describe the bug
When attempting to transform a Plane in place via its transform() method, error is raised in line 248 of compas.geometry._primitives.plane.py when trying to coerce the first entry into a float as it it thinks the output of compas.geometry.transformations.transform_points() is a single list . However, the returned value of the latter function is a in fact a nested list.

To Reproduce

from compas.geometry import Plane
from compas.geometry import Point
from compas.geometry import Vector
from compas.geometry import Rotation

plane = Plane(Point(0, 0, 0), Vector(0, 0, 1))
rot = Rotation.from_quaternion([0, 1, 0, 0])
plane.transform(rot)

Expected behavior
Transformation successfully applied to Plane.

Desktop:

  • OS: Windows 10
  • Python version: 3.7.0
  • Compas version: 0.4.10
  • Python package manager: conda

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions