CadQuery / CQ-editor

CadQuery GUI editor based on PyQT
Apache License 2.0
761 stars 118 forks source link

CQ-Editor gets stuck and consumes all memory #384

Open voneiden opened 1 year ago

voneiden commented 1 year ago

Similar to CadQuery/cadquery#502 cq-editor gets stuck trying to render an extrusion of two overlapping circles. In a matter of seconds tens of gigabytes of memory are consumed and the process is killed.

import cadquery as cq

result = (
    cq.Workplane()
    .pushPoints([(0, 0), (-50, 0)])
    .circle(30)
    .extrude(4)
)

This runs fine without cq-editor, so I suppose the issue is on the side of rendering. Also it seems to be related to circles as overlapping rectangles appear to work just fine. circle(25) but the output is a bit wonky.

Reproduces with OCP 7.5.3.0 and 7.6.3.alpha.

lorenzncode commented 1 year ago

If cq-editor is slow to render and/or consumes large memory, try relaxing the 3D Viewer tolerances:

Edit->Preferences->3D Viewer

Increase the value of one or both of these settings:

Deviation
Angular deviation