The obj file format is a Bezier curve (Simplified) stored as follows:
v 0.0 0.0 0.0
v 0.0 1.0 0.0
v 1.0 1.0 0.0
v 1.0 0.0 0.0
csType bezier
3 deg
curv 1 2 3 4
end
Deg with the degree of the curve is called, deg + 1 is the number of Bezier control points.
After curv are the indices of the vertices that we take as control points.
Implement the Bezier curve with the deCasteljau algorithm with an arbitrary number of control points.
1 Implement reading a Bezier curve of a (simplified) obj file for
an arbitrary number of control points. Adjust the control points by small balls
You represent and connect adjacent control points with lines. Scaling and transforming
They invited the control polygon fitting into a scene
Comments
Leave a comment