When we parse DXF file which related to CAD, we can see the grade rule table file and the base size DXF file which export dxf using Gerber model . The base size DXF provides some knot points which on the NURBS curve , how to grade the NURBS curve with the grading point which define in the grade rule table file ?
Is there java NURBS lib for me ?
I search for some research: we parse the point from DXF(CAD file format), the weight associate with the NURBS curve in DXF is default 1, then interpolate the knot points and get the control points, then could draw the NURBS curve , using python lib python-nurbs lib
# when deal with polyline in dxf
from geomdl.fitting import interpolate_curve
....
degree = min(pointSize - 1, 3)
curve = interpolate_curve(points, degree) # points which on the NURBS curve
vertices = curve.evalpts # this is knot points ,and we can get control points