Skip to content

Better BuildCurves3d_s parameters in makeHelix#387

Merged
jmwright merged 4 commits into
masterfrom
BuildCurves3d-fix
Jun 24, 2020
Merged

Better BuildCurves3d_s parameters in makeHelix#387
jmwright merged 4 commits into
masterfrom
BuildCurves3d-fix

Conversation

@adam-urbanczyk
Copy link
Copy Markdown
Member

@adam-urbanczyk adam-urbanczyk commented Jun 23, 2020

This will resolve #385 . The parameters are chosen "experimentally", so future changes are possible.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 23, 2020

Codecov Report

Merging #387 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #387   +/-   ##
=======================================
  Coverage   93.31%   93.31%           
=======================================
  Files          19       19           
  Lines        4847     4847           
  Branches      483      483           
=======================================
  Hits         4523     4523           
  Misses        210      210           
  Partials      114      114           
Impacted Files Coverage Δ
cadquery/occ_impl/shapes.py 90.15% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02a8549...4a264d2. Read the comment docs.

@adam-urbanczyk
Copy link
Copy Markdown
Member Author

I think this PR can be merged @jmwright . Current settings produce a correct result for at least 1000 turns:

import cadquery as cq

R = 500 # helix radius
N = 1000 # helix turns - incorrect output for N > 42
P= 10 # helix pitch

w = cq.Wire.makeHelix(pitch=P, height=N*P, radius=R)
show_object(w)

I think this is enough for a typical user. In the future we might want to assemble the final helix form multiple edges.

@jmwright
Copy link
Copy Markdown
Member

Thanks @adam-urbanczyk , merging.

@jmwright jmwright merged commit 56046ef into master Jun 24, 2020
@jmwright jmwright deleted the BuildCurves3d-fix branch October 28, 2025 20:14
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.

Incorrect makeHelix output

2 participants