Fixed plane origin setter Issue #338

This commit is contained in:
gumyr 2023-10-10 11:59:23 -04:00
parent 56713573c0
commit 2c52fb4f44
2 changed files with 10 additions and 1 deletions

View file

@ -2248,6 +2248,12 @@ class TestPlane(DirectApiTestCase):
# common = (x_axis_as_edge.intersect(Edge.make_line((0, 0, 0), (1, 0, 0)))).edge()
# self.assertAlmostEqual(common.length, 1, 5)
def test_plane_origin_setter(self):
pln = Plane.XY
pln.origin = (1, 2, 3)
ocp_origin = Vector(pln.wrapped.Location())
self.assertVectorAlmostEquals(ocp_origin, (1, 2, 3), 5)
class TestProjection(DirectApiTestCase):
def test_flat_projection(self):