Skip to content

Commit 30ae0fe

Browse files
syscordanpyansys-ci-botRobPasMue
authored
test: adding inward shell (#1833)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
1 parent 1c56f26 commit 30ae0fe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/changelog.d/1833.test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
adding inward shell

tests/integration/test_design.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,6 +3111,12 @@ def test_shell_body(modeler: Modeler):
31113111
assert base.volume.m == pytest.approx(Quantity(0.728, UNITS.m**3).m, rel=1e-6, abs=1e-8)
31123112
assert len(base.faces) == 12
31133113

3114+
base = design.extrude_sketch("box", Sketch().box(Point2D([0, 0]), 1, 1), 1)
3115+
success = base.shell_body(-0.1)
3116+
assert success
3117+
assert base.volume.m == pytest.approx(Quantity(0.488, UNITS.m**3).m, rel=1e-6, abs=1e-8)
3118+
assert len(base.faces) == 12
3119+
31143120

31153121
def test_shell_faces(modeler: Modeler):
31163122
"""Test shell commands for a single face."""

0 commit comments

Comments
 (0)