Question: Please make the OpenGL code to plot #2 curve. Use the the program vidual studio and show me the code please. 302 : (CAD) //

 Please make the OpenGL code to plot #2 curve. Use thethe program "vidual studio" and show me the code please. 302 :

Please make the OpenGL code to plot #2 curve. Use the the program "vidual studio" and show me the code please.

302 : (CAD) // glPointSize(7.0f) glColor3f(1.or. o.of, 0.01) glBegin(GLPOINTS) for (i0 isn Points i++) gl Vertex2fv(ctrlPointslil): glEnd ) glDisable(GL LINE STRIPPLE) gIFlush ) 3 Draw B-spline curve which has following control points 120,100.0), (40.180,0), (90.170.0, 120.30.0. 150.40.0), 1180,110,0 with knot vector [0, 0, 0, 0, 1, 2, 3, 3, 3, 3] Draw Bezier curve which has following control points. 120,100.0). 140,180,0), 190.170.0). 1120,30.0. 1150,40,0, 180,110,0 51 Draw the control points with red dot and the line of the control points with yellow dotted line (stipple) on the Bezier surface of the example 9-4. Draw NURBS surface which has following control points [4 , l-0.5,-1.5.0.5,13, (-0.5.-0.5.2.0,1], I-0.5,0.5.2.0,1), (-0.5,1.5,1.0.13. with knot vector [0, 0, 0, 0, 1, 1, 1, 1] Draw NURBS surface which has following control points l44]. 1.5,-4.5,1.5.3), 1.5,-1.5.6.0.3), 11.5,1.5.6.0.3), (1.5,4 53 u 302 : (CAD) // glPointSize(7.0f) glColor3f(1.or. o.of, 0.01) glBegin(GLPOINTS) for (i0 isn Points i++) gl Vertex2fv(ctrlPointslil): glEnd ) glDisable(GL LINE STRIPPLE) gIFlush ) 3 Draw B-spline curve which has following control points 120,100.0), (40.180,0), (90.170.0, 120.30.0. 150.40.0), 1180,110,0 with knot vector [0, 0, 0, 0, 1, 2, 3, 3, 3, 3] Draw Bezier curve which has following control points. 120,100.0). 140,180,0), 190.170.0). 1120,30.0. 1150,40,0, 180,110,0 51 Draw the control points with red dot and the line of the control points with yellow dotted line (stipple) on the Bezier surface of the example 9-4. Draw NURBS surface which has following control points [4 , l-0.5,-1.5.0.5,13, (-0.5.-0.5.2.0,1], I-0.5,0.5.2.0,1), (-0.5,1.5,1.0.13. with knot vector [0, 0, 0, 0, 1, 1, 1, 1] Draw NURBS surface which has following control points l44]. 1.5,-4.5,1.5.3), 1.5,-1.5.6.0.3), 11.5,1.5.6.0.3), (1.5,4 53 u

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!