Skip to content

Commit 7c0fd90

Browse files
committed
Address test failures
1 parent 155ff86 commit 7c0fd90

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ simple.step
1919
simple.stp
2020
simple.xml
2121
test.brep
22+
nested.caf
23+
nested.glb
24+
nested.stp
25+
nested.wrl
26+
nested.xml
27+
nested.zip

cadquery/occ_impl/exporters/assembly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def exportCAF(assy: AssemblyProtocol, path: str) -> bool:
7979
return status == PCDM_StoreStatus.PCDM_SS_OK
8080

8181

82-
def _vtkRenderWindow(assy: AssemblyProtocol, tolerance: float, angularTolerance: float) -> vtkRenderWindow:
82+
def _vtkRenderWindow(assy: AssemblyProtocol, tolerance: float=1e-3, angularTolerance: float=0.1) -> vtkRenderWindow:
8383
"""
8484
Convert an assembly to a vtkRenderWindow. Used by vtk based exporters.
8585
"""
@@ -111,7 +111,7 @@ def exportVTKJS(assy: AssemblyProtocol, path: str):
111111
make_archive(path, "zip", tmpdir)
112112

113113

114-
def exportVRML(assy: AssemblyProtocol, path: str, tolerance: float, angularTolerance: float):
114+
def exportVRML(assy: AssemblyProtocol, path: str, tolerance: float=1e-3, angularTolerance: float=0.1):
115115
"""
116116
Export an assembly to a vrml file using vtk.
117117
"""

0 commit comments

Comments
 (0)