Results 1 to 5 of 5

Thread: partial cylinders

  1. #1
    Guest

    partial cylinders

    Is there a function in the glu library like gluPartialDisc() but instead of a disc it is a partial cylinder? If not, how would I code a partial cylinder, i.e. a cylindar that has an arc length of pi/3?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2000
    Posts
    171

    Re: partial cylinders

    try

    void gluCylinder(GLUquadricObj *qobj,
    GLdouble baseRadius,
    GLdouble topRadius,
    GLdouble height,
    GLint slices,
    GLint stacks)

  3. #3
    Guest

    Re: partial cylinders

    I know about that function, but it does not provide a means of producing half, or a quarter of a cylinder; it only produces the entire 360 degrees of revolution. Any ideas?

  4. #4
    Guest

    Re: partial cylinders

    Instead of using glCylinder, is it possible to draw two arcs and two lines connecting them and then fill in the resulting shape?

  5. #5
    Member Newbie
    Join Date
    Aug 2000
    Posts
    40

    Re: partial cylinders

    hate to say this, but i think the only way of doing that is by using a bezier patch (see NeHe tutorials) or a NURBS patch. I kinda wish there was a function that did that.
    simplicity is the work of genious

Similar Threads

  1. Intersection between two cylinders
    By Spambox in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 03-13-2014, 02:11 PM
  2. Circles to Cylinders
    By Jiggered in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 08-09-2012, 08:06 AM
  3. Twisted cylinders
    By alabama in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-17-2006, 09:23 AM
  4. Disappearing Cylinders
    By DLR in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-14-2001, 03:44 AM
  5. Bending Cylinders
    By Thug in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-23-2001, 09:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean