Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better BuildCurves3d_s parameters in makeHelix #387

Merged
merged 4 commits into from
Jun 24, 2020
Merged

Conversation

adam-urbanczyk
Copy link
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

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
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
Member

Thanks @adam-urbanczyk , merging.

@jmwright jmwright merged commit 56046ef into master Jun 24, 2020
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