Any Method to approximate from a Bezier Curve to a Control Polygon back ?


does it exist a method to approximate a Bezier Curve to a Polygon with control-points ?

thank you in advance.

MerryLoggings's picture

A bezier curve _is_ an approximation of the polygon. Use the polygon's corner points as control points for the bezier curve. The curve will degenerate to the polygon (aka "control polygon": polygon consisting of the curve's control points) itself, if you reduce the curve's degree.
By using a NURBS curve (BSpline in open CASCADE) instead, you have more control over how the curve approximates the polygon apart from changing the degree by simply changing the weights of the control points.