Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncommandbar Pin
Sunshine Always23-Feb-07 21:53
Sunshine Always23-Feb-07 21:53 
QuestionProperty Bag Pin
zareee23-Feb-07 21:23
zareee23-Feb-07 21:23 
QuestionSend UINT array Pin
javad_200523-Feb-07 20:18
javad_200523-Feb-07 20:18 
AnswerRe: Send UINT array Pin
jeron124-Feb-07 4:36
jeron124-Feb-07 4:36 
AnswerRe: Send UINT array Pin
Mark Salsbery24-Feb-07 6:56
Mark Salsbery24-Feb-07 6:56 
QuestionOpenGL cylinder help Pin
rushiraj.jhala23-Feb-07 19:01
rushiraj.jhala23-Feb-07 19:01 
AnswerRe: OpenGL cylinder help Pin
Maximilien24-Feb-07 2:34
Maximilien24-Feb-07 2:34 
AnswerRe: OpenGL cylinder help Pin
El Corazon24-Feb-07 8:17
El Corazon24-Feb-07 8:17 
rushiraj.jhala wrote:
I want to display a cylinder with hole.


the gluCylinder is some-what of a rough tool for this type of work. You can get into some of the super-ellipsoids or constructive geometry, both of which have their difficulties. You can also switch prototypes to a torus and scale it significantly in one direction. This does produce a rounded top rather than a flat. The other method is just to calculate it. A cylinder is easy to draw as it is just a circle with in an inner and outer dimension and a surface between the two. You could actually define the whole thing as one tri-strip by running a diagnal line around the inner and outer surfaces and meeting back up with itself at the end. 360 degrees, one tri-strip, makes a fast and easy surface to play with (this would be equivalent to a wrap torus, but with a flat inner-outer and top-bottom dimension).

Constructive Solid Geometry[^]

Wrap Torus[^]

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

Questionhow to end a process remotely from server? Pin
ShaluMalu23-Feb-07 18:18
ShaluMalu23-Feb-07 18:18 
AnswerRe: how to end a process remotely from server? Pin
Newbie0023-Feb-07 22:52
Newbie0023-Feb-07 22:52 
QuestionUnit test case Pin
RockyJames23-Feb-07 18:06
RockyJames23-Feb-07 18:06 
AnswerRe: Unit test case Pin
Rajesh R Subramanian23-Feb-07 18:52
professionalRajesh R Subramanian23-Feb-07 18:52 
Questionmstcpip.h Pin
skyline223-Feb-07 17:55
skyline223-Feb-07 17:55 
AnswerRe: mstcpip.h Pin
Hamid_RT23-Feb-07 19:01
Hamid_RT23-Feb-07 19:01 
GeneralRe: mstcpip.h Pin
skyline22-Mar-07 0:19
skyline22-Mar-07 0:19 
GeneralRe: mstcpip.h Pin
Hamid_RT2-Mar-07 0:36
Hamid_RT2-Mar-07 0:36 
AnswerRe: mstcpip.h Pin
Christian Graus23-Feb-07 22:40
protectorChristian Graus23-Feb-07 22:40 
AnswerRe: mstcpip.h Pin
skyline22-Mar-07 0:17
skyline22-Mar-07 0:17 
AnswerRe: mstcpip.h Pin
Mark Salsbery24-Feb-07 7:08
Mark Salsbery24-Feb-07 7:08 
GeneralRe: mstcpip.h Pin
skyline22-Mar-07 0:19
skyline22-Mar-07 0:19 
QuestionEscape key press event Pin
zareee23-Feb-07 16:20
zareee23-Feb-07 16:20 
AnswerRe: Escape key press event Pin
Rajesh R Subramanian23-Feb-07 18:31
professionalRajesh R Subramanian23-Feb-07 18:31 
GeneralRe: Escape key press event Pin
zareee23-Feb-07 21:16
zareee23-Feb-07 21:16 
AnswerRe: Escape key press event Pin
Hamid_RT23-Feb-07 18:55
Hamid_RT23-Feb-07 18:55 
AnswerRe: Escape key press event Pin
Michael Dunn23-Feb-07 20:05
sitebuilderMichael Dunn23-Feb-07 20:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.