Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

1. Diagnose and solve a transfer of training problem.

Answered: 1 week ago