• Advertisement

Archived

This topic is now archived and is closed to further replies.

Extrude...

This topic is 5896 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I´ve generated some nice sinus curves... These sinus curves are line based, now I want to extrude this function to make some nice effect... How do I extrude these curves in an nice way? This is the rendering loop: float r; glBegin(GL_LINE_STRIP); for(float i=0,j; i<360; i++, j+=0.3) { r=sin(i*3.14/180*5+anim); glVertex3f(-r*sin(3*i*3.14/180),-r*cos(3*5*i*3.14/180),- r*cos(3*i*3.14/180)); } glEnd(); Too see the app in action: ftp://public:public@213.65.120.191:666/test-1.exe /michelle

Share this post


Link to post
Share on other sites
Advertisement
For some reason do I think of the GLE Tubing and Extrusion Library.
http://linas.org/gle/

Share this post


Link to post
Share on other sites
What do you mean ''to extrude function'' ?
If you mean create a surface by it, then its simple. You can create a set of points and evaluate them with OpenGL evaluators using glMap2f and glEvalMesh2.
See link
http://www.opengl.org/developers/code/mjktips/grid/

Share this post


Link to post
Share on other sites

  • Advertisement