Monday, July 27, 2009

Program to draw a 3d graph( sinewave) manipulating it with cursor using c graphics.Can u suggest any c website

program using c graphics


project:It should be a 3d graph(sine wave) and can also be able to alter the graph using mouse.

Program to draw a 3d graph( sinewave) manipulating it with cursor using c graphics.Can u suggest any c website
Doesn't your teacher want you to do this yourself?





To get the points of a sign wave is very easy, start with a loop x taking it from 0 to 360 and get y by sending it though the sign function which I think is in math.h if I remember correctly. Find a simple graphics library for you operating system and I bet they have a plot control. If you are on Unix, you could pipe the output of your C program to gnuplot. That gets you half way.


No comments:

Post a Comment