Skip to content

Commit 25290e8

Browse files
authored
Merge pull request #1167 from CadQuery/better-normals
Do not recompute normals when converting to vtk
2 parents d5806e3 + 13c1d09 commit 25290e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cadquery/occ_impl/exporters/vtk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def toString(
1818

1919
writer = vtkXMLPolyDataWriter()
2020
writer.SetWriteToOutputString(True)
21-
writer.SetInputData(shape.toVtkPolyData(tolerance, angularTolerance))
21+
writer.SetInputData(shape.toVtkPolyData(tolerance, angularTolerance, True))
2222
writer.Write()
2323

2424
return writer.GetOutputString()

cadquery/occ_impl/shapes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ def toVtkPolyData(
12461246
self,
12471247
tolerance: Optional[float] = None,
12481248
angularTolerance: Optional[float] = None,
1249-
normals: bool = True,
1249+
normals: bool = False,
12501250
) -> vtkPolyData:
12511251
"""
12521252
Convert shape to vtkPolyData

0 commit comments

Comments
 (0)