@@ -77,7 +77,7 @@ def test_body_tessellate(modeler: Modeler):
7777 )
7878 else :
7979 assert blocks_2 .bounds == pytest .approx (
80- [0.019999999999999997 , 0.04 , 0.019999999999999886 , 0.040000000000000036 , 0.0 , 0.03 ],
80+ [0.019999999999999997 , 0.04 , 0.020151922469877917 , 0.03984807753012208 , 0.0 , 0.03 ],
8181 rel = 1e-6 ,
8282 abs = 1e-8 ,
8383 )
@@ -93,8 +93,8 @@ def test_body_tessellate(modeler: Modeler):
9393 assert mesh_2 .n_arrays == 0
9494 else :
9595 assert "PolyData" in str (mesh_2 )
96- assert mesh_2 .n_cells == 7200
97- assert mesh_2 .n_points == 7204
96+ assert mesh_2 .n_cells == 72
97+ assert mesh_2 .n_points == 76
9898 assert mesh_2 .n_arrays == 0
9999
100100 # Make sure instance body tessellation is the same as original
@@ -136,8 +136,8 @@ def test_component_tessellate(modeler: Modeler):
136136 comp .plot ()
137137 assert "PolyData" in str (mesh )
138138 if modeler .client .backend_type != BackendType .LINUX_SERVICE :
139- assert mesh .n_cells == 3280
140- assert mesh .n_faces == 3280
139+ assert mesh .n_cells == 15872
140+ assert mesh .n_faces == 15872
141141 assert mesh .n_arrays == 0
142142 assert mesh .n_points == 3300
143143 assert mesh .bounds == pytest .approx (
@@ -146,12 +146,12 @@ def test_component_tessellate(modeler: Modeler):
146146 abs = 1e-8 ,
147147 )
148148 else :
149- assert mesh .n_cells == 15872
150- assert mesh .n_faces == 15872
149+ assert mesh .n_cells == 3280
150+ assert mesh .n_faces == 3280
151151 assert mesh .n_arrays == 0
152- assert mesh .n_points == 15892
152+ assert mesh .n_points == 3300
153153 assert mesh .bounds == pytest .approx (
154- [- 25.0 , 25.0 , - 25.0 , 25.0 , 0.0 , 20.0 ],
154+ [- 25.0 , 25.0 , - 24.999251562526105 , 24.999251562526105 , 0.0 , 20.0 ],
155155 rel = 1e-6 ,
156156 abs = 1e-8 ,
157157 )
0 commit comments