Unity base NURBS spline and surface module. Both Spline and Surface are available.
Spline module offers Standard, Loop, Clamped options.
GetCurve
function converts [0, 1) -> position on curve in whichever mode. First & second devivatives are available from GetFirstDerivative
and GetSecondDerivative
as they are shown below, are currently active only in Standard or Loop mode.
Open/Closed surface mesh is available. 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 FlatSurface, Torus(S x S), Cylinder.
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.
- Sphere (S^2) option in surface.
- Enable FFD.