File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 55from compas .files import GLTFContent
66from compas .tolerance import TOL
77
8+ # Temporary change the global precision in the TOL class to 12
89TOL .precision = 12
910
1011BASE_FOLDER = os .path .dirname (__file__ )
@@ -175,3 +176,7 @@ def test_gltf_content():
175176 assert len (node_0 .children ) == 0
176177 assert len (content .nodes ) == 1
177178 assert len (scene .nodes ) == 1
179+
180+
181+ # Reset the precision to its default value
182+ TOL .precision = 3
Original file line number Diff line number Diff line change 55from compas .files import STL
66from compas .tolerance import TOL
77
8+ # Temporary change the global precision in the TOL class to 12
89TOL .precision = 12
910
1011BASE_FOLDER = os .path .dirname (__file__ )
@@ -43,3 +44,7 @@ def test_binary_read_write_fidelity():
4344 mesh_2 = Mesh .from_stl (fp )
4445 assert mesh .adjacency == mesh_2 .adjacency
4546 assert mesh .vertex == mesh_2 .vertex
47+
48+
49+ # Reset the precision to its default value
50+ TOL .precision = 3
You can’t perform that action at this time.
0 commit comments