Archived

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

Bézier-Curves

This topic is 6030 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

Can somebody please help me, I seem to be a complete idiot, I''ve got this code from a book: GLfloat ctrlPoints[3][3][3]= {{{-4.0f, 0.0f, 4.0f}, {0.0f, 0.0f, 8.0f}, { 4.0f, 0.0f, 4.0f }}, {{-4.0f, 0.0f, 0.0f}, { -0.0f, 0.0f, 4.0f}, { 4.0f, 0.0f, 0.0f }}, {{-4.0f, 0.0f, -4.0f}, { -0.0f, 0.0f, 0.0f}, { 4.0f, 0.0f, -4.0f }}}; Now I dont need the three lines in the middle, but somehow I can''t work out, which values I have to change in the 3d-Array. Can somebody please help me???

Share this post


Link to post
Share on other sites
Eh? Looking at your code the 3dimensional array seems like it's used to control the position's of the control points ? eh, I suggest you just keep reading through that chapter or whatever your on, and then fiddle with it a bit to further understand what you are doing.

Edited by - masterg on July 15, 2001 3:46:20 PM

Share this post


Link to post
Share on other sites