Update for dev merge to Compound and Face(Plane)

This commit is contained in:
Jonathan Wagenet 2025-11-14 17:30:55 -05:00
parent 5ea2dab174
commit 5f67a1932a
4 changed files with 7 additions and 7 deletions

View file

@ -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():

View file

@ -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():

View file

@ -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():

View file

@ -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]