CadQuery / CadQuery/cadquery

Arbitrary-ish helical paths

Open
#984 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

I'm trying to create helical paths around shapes other than a cylinder or cone. For example, I made this manually by splitting a helix and drawing tangent lines between the two halves:
Screen Shot 2022-02-06 at 11 16 38 PM

However, I'd like to be able to do this with any closed ruled surface, or more specifically if I have a closed 2D curve on a sketch, I want to create a helix that follows that curve.

I saw that `makeHelix` works by mapping an angled line onto a surface (cylinder or cone) via u v coordinates. That sounds pretty good to me, but I'm getting lost in wrapped types and internal geometry representations. I'd like to use CQ's nice high level API if possible.

Alternatively, if it can be calculated directly with splines, I'd appreciate any pointers to papers about that. That said, I haven't gone very far down the white paper rabbit hole since I'm hoping there's an easier way.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing makeHelix behavior, especially its mapping of an angled line through u v coordinates and the wrapped types and internal geometry it uses. Compare that with the requested closed 2D sketch curve and determine whether support for arbitrary closed ruled surfaces can fit the high-level API; done means generating a helix that follows such a curve.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.