cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Freezing With Sweeps

Open jpoles1 opened this issue 3 years ago • 1 comments

Simple sweeps seem to take a very long time if simple, and seem to freeze indefinitely for even slightly more complicated sweeps such as below. Not sure if this is something fixable or a core limitation of the kernal, but figured I'd share the issue.

To Reproduce

from cadquery import *

pipe_path = Workplane("XZ").spline([(0,0), (20,-20), (50,-20), (50,-30)])
pipe = cq.Workplane("XY").circle(5).sweep(pipe_path, multisection=0, isFrenet=1, clean=False)

Environment

OS: Windows Was CadQuery installed using Conda?: Latest CadQuery packaged with CQ-Editor

Using: CQ-Editor

jpoles1 avatar Aug 07 '22 07:08 jpoles1

Your sweep is not that simple (for some reason you want to explicitly use Frenet frame which gives a very weird result in this case):

afbeelding

Try this instead:

from cadquery import *

pipe_path = Workplane("XZ").spline([(0,0), (20,-20), (50,-20), (50,-30)])
pipe = cq.Workplane("XY").circle(5).sweep(pipe_path, multisection=0, isFrenet=False, clean=False)

afbeelding

adam-urbanczyk avatar Aug 07 '22 09:08 adam-urbanczyk