Skip to content

Commit a1f4646

Browse files
committed
Changes to satisfy black formatting
1 parent 7c0fd90 commit a1f4646

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

cadquery/occ_impl/assembly.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def toVTK(
179179
loc: Location = Location(),
180180
color: Tuple[float, float, float, float] = (1.0, 1.0, 1.0, 1.0),
181181
tolerance: float = 1e-3,
182-
angularTolerance: float = 0.1
182+
angularTolerance: float = 0.1,
183183
) -> vtkRenderer:
184184

185185
loc = loc * assy.loc
@@ -189,7 +189,9 @@ def toVTK(
189189
color = assy.color.toTuple()
190190

191191
if assy.shapes:
192-
data = Compound.makeCompound(assy.shapes).toVtkPolyData(tolerance, angularTolerance)
192+
data = Compound.makeCompound(assy.shapes).toVtkPolyData(
193+
tolerance, angularTolerance
194+
)
193195

194196
mapper = vtkMapper()
195197
mapper.SetInputData(data)

cadquery/occ_impl/exporters/assembly.py

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

8181

82-
def _vtkRenderWindow(assy: AssemblyProtocol, tolerance: float=1e-3, angularTolerance: float=0.1) -> vtkRenderWindow:
82+
def _vtkRenderWindow(
83+
assy: AssemblyProtocol, tolerance: float = 1e-3, angularTolerance: float = 0.1
84+
) -> vtkRenderWindow:
8385
"""
8486
Convert an assembly to a vtkRenderWindow. Used by vtk based exporters.
8587
"""
@@ -111,7 +113,12 @@ def exportVTKJS(assy: AssemblyProtocol, path: str):
111113
make_archive(path, "zip", tmpdir)
112114

113115

114-
def exportVRML(assy: AssemblyProtocol, path: str, tolerance: float=1e-3, angularTolerance: float=0.1):
116+
def exportVRML(
117+
assy: AssemblyProtocol,
118+
path: str,
119+
tolerance: float = 1e-3,
120+
angularTolerance: float = 0.1,
121+
):
115122
"""
116123
Export an assembly to a vrml file using vtk.
117124
"""

0 commit comments

Comments
 (0)