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

Add a simple calculator to the GUI, for sampling points along the ribbon #33

Open
wants to merge 1 commit into
base: v6.0b
Choose a base branch
from

Conversation

chunky
Copy link

@chunky chunky commented Aug 25, 2016

This is for using the ribbonmaker in combination with the multilos layer:

Given a ribbon {some distance away from a shape}, sample points along the ribbon every {some distance}, and print them out in a little GUI control that I can copy/paste from. The points can be used for whatever [they're semicolon-separated], but they can easily be copied into the multilos layer.

The real key is getPointsAroundPolys(), around line 413; instead of just using every inflection point along the ribbon, we calculate the distance and gracefully return points every {distance} along it, correctly subdividing long edges or crossing over short ones.

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.

None yet

1 participant