View Full Version : cylinder with a hole
thomas giusepe
11-09-2003, 03:08 AM
Someone there could send me a clue about rendering a cylinder with a hole on it? Thanks in advance.
SirKnight
11-09-2003, 01:16 PM
Hint: Cylindrical Coordinates.
BTW, this is hardly advanced.
-SirKnight
masterpoi
11-09-2003, 10:43 PM
do you mean a tube?
glBegin(GL_TRIANGLES);
glEnd();
Of course the hole will be really big, but it's a start.
thomas giusepe
11-10-2003, 05:21 AM
I wanna draw a tube with a hole in its middle surface. Something like that:
0====.=====0
where the "." represents the tiny/medium hole. To draw the tube open at each extreme I used an OGL quadratic cylinder. Now the point is, how to put a hole on its middle surface? Any clues!? Thnx in advance.
Coconut
11-10-2003, 05:58 AM
Do you care about the exact boundary of the hole on the cylinder is?
Andrea Rossini
11-10-2003, 07:12 AM
I think you must make your own drawing function.
You should calculate intersection coords...
mmmh... hard to do, but if you will succeed you kick ass.... http://www.opengl.org/discussion_boards/ubb/biggrin.gif
knackered
11-10-2003, 10:54 PM
Originally posted by SirKnight:
BTW, this is hardly advanced.
-SirKnight
Unless you have a vagina, thomas?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.