mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Adding test for local/global Issue #87
This commit is contained in:
parent
6cb464ada3
commit
ed3b7c1b97
1 changed files with 16 additions and 0 deletions
|
|
@ -113,6 +113,22 @@ class AddTests(unittest.TestCase):
|
|||
with _TestBuilder():
|
||||
Add(Edge.make_line((0, 0, 0), (1, 1, 1)))
|
||||
|
||||
def test_local_global_locations(self):
|
||||
"""Check that add is using a local location list"""
|
||||
with BuildSketch() as vertwalls:
|
||||
Rectangle(40, 90)
|
||||
|
||||
with BuildPart() as mainp:
|
||||
with BuildSketch() as main_sk:
|
||||
Rectangle(50, 100)
|
||||
Extrude(amount=10)
|
||||
topf = mainp.faces().sort_by(Axis.Z)[-1]
|
||||
with BuildSketch(topf):
|
||||
Add(vertwalls.sketch)
|
||||
Extrude(amount=15)
|
||||
|
||||
self.assertEqual(len(mainp.solids()), 1)
|
||||
|
||||
|
||||
class TestOffset(unittest.TestCase):
|
||||
def test_single_line_offset(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue