Polyhedra dan Quadric Praktikum 11 Dari http www
- Slides: 12
Polyhedra dan Quadric Praktikum 11 Dari : http: //www. cs. sjsu. edu/~teoh/teaching/previous/cs 116 a_fa 09/lectures/lecture 09 b_polyhedra_curved. ppt
Objek 3 D � Objek 3 D biasanya dibentuk dengan polyhedra � Polyhedra dibentuk dari sekumpulan poligon yang disambung-sambung � Di Open. GL, polyhedra dapat dibuat dengan objek 2 D dasar, seperti GL_QUADS, GL_POLYGON, atau GL_TRIANGLES
Polyhedra Beraturan � Polyhedra beraturan semua sisinya mirip � Contoh: › › › Tetrahedron beraturan : 4 sisi Hexahedron beraturan (kubus) : 6 sisi Octahedron beraturan : 8 sisi Dodecahedron beraturan : 12 sisi Icosahedron beraturan : 20 sisi
Polyhedra Beraturan
Fungsi di GLUT � GLUT menyediakan fungsi siap pakai untuk 5 jenis polyhedra beraturan Solid Wireframe glut. Solid. Tetrahedron(); glut. Wire. Tetrahedron(); glut. Solid. Cube(panjang_sisi); glut. Wire. Cube(panjang_sisi); glut. Solid. Octahedron(); glut. Wire. Octahedron(); glut. Solid. Dodecahedron(); glut. Wire. Dodecahedron(); glut. Solid. Icosahedron(); glut. Wire. Icosahedron(); Semua objek akan digambar secara default di titik 0, 0
Permukaan Quadric � Permukaan yang lengkung � Biasanya didekati dengan segiempat � Bola � Kerucut � Torus
Fungsi di GLUT Bentuk Fungsi Bola glut. Solid. Sphere(radius, slices, stacks); glut. Wire. Sphere(radius, slices, stacks); Kerucut glut. Solid. Cone(radius, tinggi, slices, stacks); glut. Wire. Cone(radius, tinggi, slices, stacks); Torus glut. Solid. Torus(r_luar, r_dalam, slices, stacks); glut. Wire. Torus(r_luar, r_dalam, slices, stacks); � Slices dan stacks menyatakan seberapa detail objek akan dibuat
GLUT Sphere Slices Stacks
GLUT Torus slices stacks r_dalam r_luar axis
Silinder dan Disk GLUquadric. Obj *optr; optr = glu. New. Quadric(); glu. Quadric. Draw. Style(optr, GLU_FILL); // GLU_LINE atau GLU_FILL glu. Cylinder(optr, 1. 0, 2. 0, 10. 0, 2. 0); // ptr, rbase, rtop, height, slices, stacks // alas berada pada sumbu z glu. Disk(optr, 0. 0, 10. 0, 2. 0); // ptr, r. Inner, r. Outer, n. Radii, n. Rings // pada bidang (x, y) Disk dengan n. Radii = 8 dan n. Rings = 2
Bonus : GLUT Teapot � Utah teapot(dibuat oleh Martin Newell pada 1975) glut. Solid. Teapot(ukuran); glut. Wire. Teapot(ukuran);
3 D di GLUT � Ambil dari http: //pastie. org/2895031
- Determine whether the solid is a polyhedron
- Polihedral
- Regular polyhedra
- Quadric surfaces chart
- Glu quadric
- Yz plane equation
- Watt indicator mechanism is an inversion of
- Guowei wu
- Quadratic surfaces
- Dasar teori dasar pengukuran dan ketidakpastian
- Http //mbs.meb.gov.tr/ http //www.alantercihleri.com
- Http //pelatihan tik.ung.ac.id
- Praktikum iz merno akvizicionih sistema etf