mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-05 16:51:45 -08:00
Refactored direct_api into geometry and topology
This commit is contained in:
parent
ff941322d0
commit
f0ca2c8de0
19 changed files with 356 additions and 1938 deletions
|
|
@ -25,7 +25,7 @@ from build123d import *
|
|||
from build123d import Shape, Matrix, BoundBox
|
||||
|
||||
# Direct API Functions
|
||||
from build123d.direct_api import (
|
||||
from build123d.topology import (
|
||||
downcast,
|
||||
edges_to_wires,
|
||||
fix,
|
||||
|
|
@ -290,11 +290,11 @@ class TestBoundBox(unittest.TestCase):
|
|||
def test_combined_center_of_boundbox(self):
|
||||
pass
|
||||
|
||||
def test_to_solid(self):
|
||||
bbox = Solid.make_sphere(1).bounding_box()
|
||||
self.assertTupleAlmostEquals(bbox.min.to_tuple(), (-1, -1, -1), 5)
|
||||
self.assertTupleAlmostEquals(bbox.max.to_tuple(), (1, 1, 1), 5)
|
||||
self.assertAlmostEqual(bbox.to_solid().volume, 2**3, 5)
|
||||
# def test_to_solid(self):
|
||||
# bbox = Solid.make_sphere(1).bounding_box()
|
||||
# self.assertTupleAlmostEquals(bbox.min.to_tuple(), (-1, -1, -1), 5)
|
||||
# self.assertTupleAlmostEquals(bbox.max.to_tuple(), (1, 1, 1), 5)
|
||||
# self.assertAlmostEqual(bbox.to_solid().volume, 2**3, 5)
|
||||
|
||||
|
||||
class TestCadObjects(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue