PDA

View Full Version : Form of GluQuadrics



CapoDaster
04-02-2013, 02:38 PM
Hey Guys,

i need to work with some Quadrics in OpenGL. I can draw some Zylinder with it. But im still wondering what form they use?
Is is implicit, or parametric? For my work i need a Zylinder which is presented in both. Is it possible to change the used form?
And finally can i Access the used formula to get parameter?

Thanks for information.

CapoDaster

CapoDaster
04-08-2013, 07:12 AM
Ok, i know the form by now, but i have to get acces to the parameter in the form. Does anyone knows how i could get them?

carsten neumann
04-08-2013, 02:26 PM
Hmm, I'm not sure what parameters you are referring to. You pass parameters into the call to draw a quadric (i.e. gluCylinder takes radii and tesselation parameters). If you need the produces vertices you'll have to use GLU tesselators or nurbs (those allow specifying callbacks to get the generated vertex attributes), or (probably better in most cases anyway) use a different library - GLU is ancient.
However, if you search a bit you should also be able to find SGI's reference implementation to learn what it does under the hood.

V-man
04-10-2013, 09:03 AM
Ok, i know the form by now, but i have to get acces to the parameter in the form. Does anyone knows how i could get them?

The parameters in the form?
I'm assuming you mean you want the source code for gluCylinder. You can download the Mesa3D library which has OpenGL code and also GLU. Just take the GLU project and search for gluCylinder. The code is in quad.c.

CapoDaster
04-19-2013, 04:23 AM
mhh, pretty nice ideas. Unfortunately i have to work with GLU, so i looked for the GLU tesselators, but im not getting it. Can u tell me how i would get the data for the vertices and the face data without actually drawing the Zylinder?
Also found the mesa quad tree and looking through this, not sure if this takes too much time though...

trungthanh901
04-19-2013, 11:11 PM
mhh, pretty nice ideas. Unfortunately i have to work with GLU, so i looked for the GLU tesselators, but im not getting it. Can u tell me how i would get the data for the vertices and the face data without actually drawing the Zylinder?
Also found the mesa quad tree and looking through this, not sure if this takes too much time though...

1.Lắp điều ḥa

Công suất (BTU)9 000-> 12 000 :200 000 VNĐ/MÁY

18 000 -> 24 000:250 000 VNĐ/MÁY

24 000 -> 36 000:800 000 VNĐ/MÁY

36 000 ->54 000:1 200 000 VNĐ/MÁY

2.Tháo điều ḥa

Công suất(BTU)9 000-> 12 000 :100 000 VNĐ/MÁY

18 000 -> 24 000:150 000VNĐ/MÁY

24 000 -> 36 000:200 000 VNĐ/MÁY

36 000 ->54 000:300 000 VNĐ/MÁY



3.Bảo dưỡng trọn gói

Công suất (BTU)9 000-> 12 000 :100 000 VNĐ/MÁY

18 000 -> 24 000:120 000 VNĐ/MÁY

24 000 -> 36 000:150 000VNĐ/MÁY

36 000 ->54 000:300 000 VNĐ/MÁY

Liên hê: Mr Phương 0904785139