Get full curve `nurbs.Curve` instance from `JordanCurve`
Opened this issue · 1 comments
carlos-adir commented
Get full curve `nurbs.Curve` instance from `JordanCurve`
carlos-adir commented
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.
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.