mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-15 15:20:37 -08:00
Fixed plane origin setter Issue #338
This commit is contained in:
parent
56713573c0
commit
2c52fb4f44
2 changed files with 10 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue