mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-15 15:20:37 -08:00
Plane instantiation from planar Geom_BoundedSurface faces Issue #756
This commit is contained in:
parent
c7a8529c24
commit
e3fdefd4bb
2 changed files with 23 additions and 9 deletions
|
|
@ -2556,6 +2556,17 @@ class TestPlane(DirectApiTestCase):
|
|||
with self.assertRaises(TypeError):
|
||||
Plane(Edge.make_line((0, 0), (0, 1)))
|
||||
|
||||
# can be instantiated from planar faces of different surface types
|
||||
# this loft creates new faces of types Geom_Plane and Geom_BSplineSurface
|
||||
lofted_solid = Solid.make_loft(
|
||||
[
|
||||
Rectangle(3, 1).wire(),
|
||||
Pos(0, 0, 1) * Rectangle(1, 1).wire(),
|
||||
]
|
||||
)
|
||||
for f in lofted_solid.faces():
|
||||
Plane(f)
|
||||
|
||||
def test_plane_neg(self):
|
||||
p = Plane(
|
||||
origin=(1, 2, 3),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue