pradeep-pyro / tinynurbs

C++ library for NURBS curves and surfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get the weight and derivatives of a point wrt to a control point?

Linxu-Fan opened this issue · comments

Hi, thanks for the amazing project!

I have a NURBS surface and N control points. Now I want to evaluate a point P(u, v). I need the weight w and derivative wu, wuu, wv, wuv and wvv wrt to each control point. Does tinynurbs support this feature? Thanks.

Hi @glovelfan, You can set weights for the surface control points in this member.

Then evaluate the points using this function, and compute derivatives w.r.t. u and v using this function. Is this what you're looking for?

Closing, let me know if you have further questions.