@@ -1406,6 +1406,7 @@ def test_thicken_surface_body(modeler: Modeler):
14061406 Quantity (0.4 , UNITS .m ** 3 ).m , rel = 1e-6 , abs = 1e-8
14071407 )
14081408
1409+
14091410def test_offset_faces (modeler : Modeler ):
14101411 """Test offsetting faces."""
14111412 design = modeler .create_design ("offset_faces" )
@@ -1432,12 +1433,13 @@ def test_offset_faces(modeler: Modeler):
14321433
14331434 assert box .volume .m == pytest .approx (Quantity (8.8 , UNITS .m ** 3 ).m , rel = 1e-6 , abs = 1e-8 )
14341435 assert box2 .volume .m == pytest .approx (Quantity (8.4 , UNITS .m ** 3 ).m , rel = 1e-6 , abs = 1e-8 )
1435-
1436+
1437+
14361438def test_revolve_edges (modeler : Modeler ):
14371439 """Test revolving edges."""
14381440 design = modeler .create_design ("revolve_edges" )
14391441 box = design .extrude_sketch ("box" , Sketch ().box (Point2D ([0 , 0 ]), 2 , 2 ), 2 )
1440-
1442+
14411443 assert len (box .faces ) == 6
14421444 assert box .volume .m == pytest .approx (Quantity (8 , UNITS .m ** 3 ).m , rel = 1e-6 , abs = 1e-8 )
14431445
@@ -1447,10 +1449,8 @@ def test_revolve_edges(modeler: Modeler):
14471449 modeler .geometry_commands .revolve_edges (edge , axis , Angle (np .pi / 2 , UNITS .rad ), True )
14481450
14491451 assert len (design .bodies ) == 2
1450- assert design .bodies [0 ].volume .m == pytest .approx (
1451- Quantity (8 , UNITS .m ** 3 ).m , rel = 1e-6 , abs = 1e-8
1452- )
1452+ assert design .bodies [0 ].volume .m == pytest .approx (Quantity (8 , UNITS .m ** 3 ).m , rel = 1e-6 , abs = 1e-8 )
14531453 assert design .bodies [1 ].is_surface
14541454 assert design .bodies [1 ].faces [0 ].area .m == pytest .approx (
14551455 Quantity (8.88576587632 , UNITS .m ** 2 ).m , rel = 1e-6 , abs = 1e-8
1456- )
1456+ )
0 commit comments