NURBS spline and surface module for Unity. Both spline/surface are modifiable in runtime.
Spline module offers Standard, Loop, Clamped options.
GetCurve
function converts [0, 1) -> position on curve. First & second devivatives are available from GetFirstDerivative
and GetSecondDerivative
, are currently active only in Standard or Loop mode. (both first and second derivatives are shown below)
Same as Spline, this module offers Standard, Loop, Clamped options for each direction (because NURBS surface is a Tensor of NURBS spline), which means this supports Plane, Cylinder, Torus, Sphere (Clamped top and bottom).
By moving control points using unity built-in handle UI, you can modify a mesh in runtime. Once you finish modifying you can bake the mesh out and save as an asset with CreateOrUpdate
method.
As seen in the Demo all the data is stored in ScriptableObject. Other settings are very obvious but if you have some trouble or question feel free to make a issue.
- Weight support in derivatives of spline.
- Derivatives in clamped spline.