Skip to content

Fix parametricCurve helix approximation - #2094

Open
ASP-SuperExplorer wants to merge 2 commits into
CadQuery:masterfrom
ASP-SuperExplorer:fix-parametric-curve-helix-2084
Open

Fix parametricCurve helix approximation#2094
ASP-SuperExplorer wants to merge 2 commits into
CadQuery:masterfrom
ASP-SuperExplorer:fix-parametric-curve-helix-2084

Conversation

@ASP-SuperExplorer

@ASP-SuperExplorer ASP-SuperExplorer commented Sep 11, 2026

Copy link
Copy Markdown

Fixes #2084.

parametricCurve currently defaults to variational smoothing, which can badly distort some curves. In the reported case, a 4-turn helix collapses even though the same curve with a non-integer stop looks fine.

This PR changes the default smoothing value for Workplane.parametricCurve to None, matching the behavior that preserves the sampled helix shape. It also adds a regression test for stop=4 that checks the sampled radius stays close to 1.

Tested with:

python -m pytest tests/test_cadquery.py::TestCadQuery::testParametricCurve tests/test_cadquery.py::TestCadQuery::testParametricCurveHelixIntegerTurns -q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parametricCurve produces wrong result with high stop value

1 participant