mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-30 12:20:41 -08:00
Update for dev merge to Compound and Face(Plane)
This commit is contained in:
parent
5ea2dab174
commit
5f67a1932a
4 changed files with 7 additions and 7 deletions
|
|
@ -782,7 +782,7 @@ class Compound(Mixin3D[TopoDS_Compound]):
|
|||
other.position + other.direction * bbox.diagonal * dist,
|
||||
)
|
||||
case Plane():
|
||||
target = Face.make_plane(other)
|
||||
target = Face(other)
|
||||
case Vector():
|
||||
target = Vertex(other)
|
||||
case Location():
|
||||
|
|
|
|||
|
|
@ -491,7 +491,7 @@ class Mixin3D(Shape[TOPODS]):
|
|||
other.position + other.direction * bbox.diagonal * dist,
|
||||
)
|
||||
case Plane():
|
||||
target = Face.make_plane(other)
|
||||
target = Face(other)
|
||||
case Vector():
|
||||
target = Vertex(other)
|
||||
case Location():
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ class Mixin2D(ABC, Shape[TOPODS]):
|
|||
other.position + other.direction * bbox.diagonal * dist,
|
||||
)
|
||||
case Plane():
|
||||
target = Face.make_plane(other)
|
||||
target = Face(other)
|
||||
case Vector():
|
||||
target = Vertex(other)
|
||||
case Location():
|
||||
|
|
|
|||
|
|
@ -355,10 +355,10 @@ def test_shape_3d(obj, target, expected):
|
|||
run_test(obj, target, expected)
|
||||
|
||||
# Compound Shapes
|
||||
cp1 = Compound() + GridLocations(5, 0, 2, 1) * Vertex()
|
||||
cp2 = Compound() + GridLocations(5, 0, 2, 1) * Line((0, -1), (0, 1))
|
||||
cp3 = Compound() + GridLocations(5, 0, 2, 1) * Rectangle(2, 2)
|
||||
cp4 = Compound() + GridLocations(5, 0, 2, 1) * Box(2, 2, 2)
|
||||
cp1 = Compound(GridLocations(5, 0, 2, 1) * Vertex())
|
||||
cp2 = Compound(GridLocations(5, 0, 2, 1) * Line((0, -1), (0, 1)))
|
||||
cp3 = Compound(GridLocations(5, 0, 2, 1) * Rectangle(2, 2))
|
||||
cp4 = Compound(GridLocations(5, 0, 2, 1) * Box(2, 2, 2))
|
||||
|
||||
cv1 = Curve() + [ed1, ed2, ed3]
|
||||
sk1 = Sketch() + [fc1, fc2, fc3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue