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

Subdivide by equal chord length #362

Open
cesarecaoduro opened this issue Sep 13, 2021 · 5 comments
Open

Subdivide by equal chord length #362

cesarecaoduro opened this issue Sep 13, 2021 · 5 comments
Assignees

Comments

@cesarecaoduro
Copy link
Collaborator

Subdivide a curve in equally spaced segments using the chord length

@d3ssy d3ssy self-assigned this Oct 4, 2021
@d3ssy
Copy link
Collaborator

d3ssy commented Oct 4, 2021

@cesarecaoduro can you give an example of desired functionality? From the description it is the same as DivideByCount. since it produces equal spacing and therefore results in equal chord lengths between the points at the equally spaced params. Should it be DivideByMaxChordLength (akin to DivideByMaxSpacing)?

@sonomirco
Copy link
Collaborator

@d3ssy and @cesarecaoduro, what do we want to do with this issue?

@cesarecaoduro
Copy link
Collaborator Author

If the divide by count is calculated along the curve, it is not the same distance.
For the chord length, di distance between two consecutive points has to be the same. This is the secant of the obscurant circle defined by the 2 points.

image

@d3ssy
Copy link
Collaborator

d3ssy commented Jan 6, 2023

In the current implementation we have ParameterAtChordLength (returns a param t' from a starting param t given a chord length l), and DivideByChordLength which returns parameters along the curve spaced at equal chord lengths with whatever length is left over at the end of the curve.

Are you asking for a method that takes a COUNT and divides the curve into count-1 segments such that the chord lengths of all segments are equal?

@cesarecaoduro
Copy link
Collaborator Author

Correct

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

No branches or pull requests

3 participants