gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.71k stars 384 forks source link

NURBS curve individual point control #61

Open saravanan2020 opened 6 years ago

saravanan2020 commented 6 years ago

I implemented your nurbs curve. But how can i control each point's slope or smoothness, For example. some points needed to be smoothed or curved and some points needs to be rough or straight point without any curvy-ness. How can i achieve this?.

rms80 commented 6 years ago

in a NURBS curve you do this by manipulating the knots. You will have to read up on NURBS curves, I am not an expert. A NURBS curve is not like a Bezier, the points don't have the same geometric interpretation as Bezier tangents.

I ported NurbsCurve2 from another library strictly for the purpose of being able to evaluate curves loaded from files. I have not used it to implement any kind of curve-editing UI. So, it only provides the very low-level interface to the actual knot/weight values.