How to draw cylinder using openGL


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu How to draw cylinder using openGL
# 1  
Old 11-12-2009
Error How to draw cylinder using openGL

Hi Sir,

i am new to openGL, i want to know how to draw cylinder using openGL code in C or C++..
And i have to insert bitmap images on cylinder..
How to do this .. please guide me ...

Thanking You in advance ..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Sector,cylinder,track information

Hi all, I am trying to get below information from linux machine, could you please assist me to get this information using a command(s) or small script: SectorsPerTrack TotalCylinders TotalHeads TotalTracks TracksPerCylinder i am aware of fdisk -l command but the information provided by... (1 Reply)
Discussion started by: omkar.jadhav
1 Replies

2. Red Hat

Warning: extended partition does not start at a cylinder boundary.

Can you please help me to remove this error. Disk /dev/sda: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk... (4 Replies)
Discussion started by: karthik9358
4 Replies

3. Programming

Draw multicolor line

Hello. I need to draw many lines with multicolor (color is set by some pixmap (xpm)) on C++ with standart libs. Horizontal lines are drawing succsessfully with GC and XSetTile. But non-horizontal - no good. I rotate pixmap for all lines and then XSetTile for each line with own pixmap, but it's... (1 Reply)
Discussion started by: Yuriy
1 Replies

4. Solaris

Solaris 8 and openGL

Hi everybody, Sorry to bother you one more time, but I have a problem with my Solaris 8 installation. Actually, Solaris works well, I can start X and access my desktop (CDE), but I'm having troubles using Cadds (a CAO software). Cadds works, but the 3D visualization is very slow compare to... (4 Replies)
Discussion started by: firstpost
4 Replies

5. Solaris

Partition 0 not aligned on cylinder boundary: "

hi Guys .. user want mirror disk c3t9d0 (running ) to c2t9d0 (fresh hdd). when i tried to bash : prtvtoc /dev/rdsk/c3t9d0s2 | fmthard -s- /dev/rdsk/c2t9d0s2 it showing following error Partition 0 not aligned on cylinder boundary: " 0 4 222 ..... unable to mirror .... plz... (1 Reply)
Discussion started by: coolboys
1 Replies

6. Solaris

Increase root partition by moving starting cylinder

I am trying to expand the root partition on Solaris 10. I can expand root partition using format/partition command, but usually increasing cylinders on partition is done on back end. In this case I would have to expand from the front end following the table below, meaning I would have to move the... (12 Replies)
Discussion started by: mjaminal
12 Replies

7. What is on Your Mind?

Do you draw flowcharts

Do you draw flowcharts while you do the programming , design new network or simmilar ? (8 Replies)
Discussion started by: solaris_user
8 Replies

8. Programming

Draw a 3D cylinder using openGL.

Hi, please give me, how to code to draw 3D cylinder in openGL, that should be rotated in x-direction. waiting for your reply .. (2 Replies)
Discussion started by: Ravikishore
2 Replies

9. Ubuntu

i am new to opengl , how to work opengl in ubuntu

Hi, i am new to opengl, how to work openGL in ubuntu ,, i am not getting which packages as to be install and how to install those packages. and how to work with small programs.. Please guide me ,,, it will appriceated ... (7 Replies)
Discussion started by: Ravikishore
7 Replies

10. Solaris

Cylinder Group Size reduces in UFS.

Hi all, I am working on Solaris 8 . Its default file system is UFS. My problem is regarding to the file system. I create two partition 1) / 1.2 Gb and 2) /home 4.5 GB In root partition there were 76 Cylinder groups ,when I was traversing the Cylinder Groups I found that the length of one cylinder... (2 Replies)
Discussion started by: sundeep saini
2 Replies
Login or Register to Ask a Question
SbCylinder(3)							       Coin							     SbCylinder(3)

NAME
SbCylinder - The SbCylinder class is a representation of a cylinder. This class is used within other classes in Coin. It contains data to represent a cylinder by an axis and a radius. The cylinder has no length/height value, which means it is treated as of infinite length. SYNOPSIS
#include <Inventor/SbLinear.h> Public Member Functions SbCylinder (void) SbCylinder (const SbLine &a, const float r) void setValue (const SbLine &a, const float r) void setAxis (const SbLine &a) void setRadius (const float r) const SbLine & getAxis (void) const float getRadius (void) const SbBool intersect (const SbLine &l, SbVec3f &intersection) const SbBool intersect (const SbLine &l, SbVec3f &enter, SbVec3f &exit) const void print (FILE *file) const Detailed Description The SbCylinder class is a representation of a cylinder. This class is used within other classes in Coin. It contains data to represent a cylinder by an axis and a radius. The cylinder has no length/height value, which means it is treated as of infinite length. See also: SbLine, SbSphere Constructor &; Destructor Documentation SbCylinder::SbCylinder (void) The default constructor will make a cylinder of radius 1, center axis going through origo in the parallel direction of the positive y-axis. SbCylinder::SbCylinder (const SbLine &a, const floatr) Construct and initialize an SbCylinder instance with the given axis a and radius r. Member Function Documentation void SbCylinder::setValue (const SbLine &a, const floatr) Set the axis and radius of the cylinder. See also: getAxis(), getRadius(). void SbCylinder::setAxis (const SbLine &a) Set the center axis of the cylinder. See also: setRadius(), getAxis(). void SbCylinder::setRadius (const floatr) Set the radius of the cylinder. See also: setAxis(), getRadius(). const SbLine & SbCylinder::getAxis (void) const Return the line which is the center axis of the cylinder. See also: setAxis(), getRadius(). float SbCylinder::getRadius (void) const Return radius of cylinder. See also: setRadius(), getAxis(). SbBool SbCylinder::intersect (const SbLine &l, SbVec3f &intersection) const Finds the intersection point of the ray l on the cylinder where the ray enters, and return this point in intersection. If the ray does not intersect the cylinder, FALSE is returned, otherwise we will return TRUE. SbBool SbCylinder::intersect (const SbLine &l, SbVec3f &enter, SbVec3f &exit) const Find the intersection points of the ray l on the cylinder and return these in enter and exit. If the ray just 'grazes' the cylinder, the enter and exit points have equal values. If the ray does not intersect the cylinder, FALSE is returned, otherwise we will return TRUE. void SbCylinder::print (FILE *fp) const Dump the state of this object to the file stream. Only works in debug version of library, method does nothing in an optimized compile. Author Generated automatically by Doxygen for Coin from the source code. Version 3.1.3 Wed May 23 2012 SbCylinder(3)