How to decease a nurbs curve's degree

In opencascade, there is a function that increase a nurbs curve's degree like :
IncreaseDegree(Standard_Integer &degree), I want to know how decease a nurbs curve's degree in opencascade?

Mauro Mariotti's picture

Generally a NURBS curve degree cannot be decreased, it can be done only in an approximate way.

ShapeCustom::BSplineRestriction does it for curves (and surfaces) inside a shape.
Maybe you can create an edge and call it.
I don't know an equivalent algorithm for curves.


SunHongLei's picture

Thanks very much!