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

Get full curve nurbs.Curve instance from JordanCurve #3

Open
carlos-adir opened this issue Dec 11, 2023 · 1 comment
Open

Get full curve nurbs.Curve instance from JordanCurve #3

carlos-adir opened this issue Dec 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@carlos-adir
Copy link
Contributor

No description provided.

@carlos-adir
Copy link
Contributor Author

It would be nice to use unclamped nurbs to describe the curve obtained from JordanCurve.
With it, it's possible to know the geometric continuity at the initial point.

image

Also, since JordanCurve is always closed, it's possible to reduce the number of points needed to describe the curve.

For example, a square with vertices [(0, 0), (1, 0), (1, 1), (0, 1)], but the standard nurbs.Curve, clamped or not, require 5 points : [(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)].
So, a way to do it is translate the vertices as control points by a linear transformation A: P = A @ V

For a further application, if it's possible to drag and move a point, the shape would constantly change without lose their continuity at any point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant