Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 8 of 8

Thread: cylinder with a hole

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    18

    cylinder with a hole

    Someone there could send me a clue about rendering a cylinder with a hole on it? Thanks in advance.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    The Round Table at Camelot
    Posts
    1,537

    Re: cylinder with a hole

    Hint: Cylindrical Coordinates.


    BTW, this is hardly advanced.


    -SirKnight
    -SirKnight

  3. #3
    Intern Contributor
    Join Date
    Apr 2000
    Location
    Hoegaarden, Belgium
    Posts
    73

    Re: cylinder with a hole

    do you mean a tube?

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Melbourne,Victoria,Australia
    Posts
    767

    Re: cylinder with a hole

    Code :
    glBegin(GL_TRIANGLES);
    glEnd();
    Of course the hole will be really big, but it's a start.

  5. #5
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    18

    Re: cylinder with a hole

    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.

  6. #6
    Member Regular Contributor
    Join Date
    May 2000
    Location
    Philadelphia
    Posts
    332

    Re: cylinder with a hole

    Do you care about the exact boundary of the hole on the cylinder is?

  7. #7
    Intern Contributor
    Join Date
    Feb 2002
    Location
    Italia
    Posts
    63

    Re: cylinder with a hole

    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....

  8. #8
    Senior Member OpenGL Guru knackered's Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    3,032

    Re: cylinder with a hole

    Originally posted by SirKnight:
    BTW, this is hardly advanced.
    -SirKnight
    Unless you have a vagina, thomas?
    Knackered

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •