Polygons yog siv rau hauv computer graphics kom sau cov duab uas muaj peb-dimensional nyob rau hauv tsos … yog li cov polygons yog ib theem hauv computer animation. Cov lej suav suav hais txog tus lej ntawm cov polygons tau ua rau ib tus ncej.
Puas muaj pes tsawg hom polygons muaj nyob rau hauv computer graphics?
Muaj 4 hom ntawm Polygon: Cov Polygon tsis tu ncua: Yog tias tag nrho cov sab thiab sab hauv lub kaum sab xis ntawm lub polygon sib npaug lossis yog tias lub polygon yog sib npaug thiab sib npaug, ces tus polygon yuav tau lub npe hu ua polygon tsis tu ncua. Piv txwv square, rhombus, equilateral daim duab peb sab, thiab lwm yam.
Yuav ua li cas koj kos ib tug polygon hauv computer graphics?
C Program los kos tus duab Polygon
- Tshaj tawm txhua qhov sib txawv nrog rau cov duab sib txawv thiab cov duab kos duab.
- Initialize all variables.
- Pib pib lub duab thaum txoj hauv kev tau teeb tsa rau tus tsav tsheb.
- Muab qhov tseem ceeb rau polygon array hauv khub.
- Siv drawpoly() muaj nuj nqi los kos cov duab polygon.
- Kaw cov duab.
Koj txhais li cas los ntawm convex thiab concave polygon hauv computer graphics?
A convex polygon yog a polygon qhov twg tag nrho cov kaum sab hauv tsawg dua 180º. Ib tug polygon uas tsawg kawg yog ib lub kaum sab xis siab dua 180 ° yog hu ua concave polygon.
Dab tsi yog qhov txawv ntawm convex thiab concave polygons?
Txhua tus polygon yog convex lossis concave. Qhov txawv ntawm convex thiab concave polygons lies hauv kev ntsuas ntawm lawv cov ces kaum. Txhawm rau kom lub polygon ua convex, tag nrho nws cov kaum sab hauv yuav tsum tsawg dua 180 degrees. Txwv tsis pub, lub polygon yog concave.