ํ๋ก๊ทธ๋๋ฐ43 STL map class map 1. ์๋ ์ ๋ ฌ 2. ๋ง์ ์๋ฃ๋ฅผ ์ ์ฅ, ๊ฒ์์ด ๋นจ๋ผ์ผ ํจ 3. ๋น๋ฒํ๊ฒ ์ฝ์ /์ญ์ ๋ฅผ ํ์ง ์์ #include map map1; // key๋ฅผ ๊ธฐ์ค์ผ๋ก ์ค๋ฆ์ฐจ์์ผ๋ก ์ ๋ ฌ map map1; // ๋ด๋ฆผ์ฐจ์ ์ ๋ ฌ map ์ฃผ์ ๋ฉค๋ฒ begin: ์ฒซ๋ฒ์งธ ์์์ ๋๋ค ์ ๊ทผ ๋ฐ๋ณต์๋ฅผ ๋ฐํ clear: ์ ์ฅํ๊ณ ์๋ ๋ชจ๋ ์์ ์ญ์ empty: ์ ์ฅํ๊ณ ์๋ ์์๊ฐ ์์ผ๋ฉด true ๋ฐํ end: ๋ง์ง๋ง ์์ ๋ค์์(๋ฏธ ์ฌ์ฉ ์์ญ) ๋ฐ๋ณต์๋ฅผ ๋ฐํ erase: ํน์ ์์น์ ์์๋ ์ง์ ๋ฒ์์ ์์๋ค์ ์ญ์ find: ํด๋น key์ ์ฐ๊ด๋ ์์์ ๋ฐ๋ณต์ ๋ฐํ insert: ์์ ์ถ๊ฐ lower_bound: ์ง์ ํ key ์์๋ฅผ ๊ฐ์ง๊ณ ์๋ค๋ฉด ํด๋น ์์น์ ๋ฐ๋ณต์ ๋ฐํ operator[]: ์ง์ ํ key ๊ฐ์ผ๋ก ์์ .. 2015. 3. 25. [tbd] Deformation Transfer for Triangle Meshes (2004) Deformation Transfer : 3 steps 1. Establish triangle correspondence. 2. Represent source deformation with per-triangle affine transformations. 3. Apply source transformations to target by solving optimization problem. 1. Triangle correspondence Target triangle mesh transform "like" the source mesh. Source์ target์ mesh๊ฐ ๋ค๋ฅด๊ธฐ ๋๋ฌธ์ ์ผ๋๋ค/๋ค๋์ผ์ ๋งค์น๊ฐ ๊ฐ๋ฅํ๋ค. ํน์ ํฌ์ธํธ๋ฅผ ์ฐ์ด source์์ target์ผ๋ก์ iterative transform.. 2015. 3. 23. [tbd] ๋ณํํ๋ ฌ Transformation Matrix https://open.gl/transformations Translation Scaling Rotation – rotation about y-axis is heading/yaw – rotation about x-axis is pitch/elevation – rotation about z-axis is roll/bank Combining transformations is demonstrated by the multiplication of matrices. ex) Mtranslate * Mscale Transformations in OpenGL Model Matrix Ojbect coordinates (position in model) -> World coordinates (position in world.. 2015. 3. 23. ๋ฆฌ๋ ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฒฝ๋ก ์ถ๊ฐ Linux library path setting 1. LD_LIBRARY_PATH ํ๊ฒฝ ๋ณ์(environment variable) ์ด์ฉํ์ฌ shared library ์ฐธ์กฐ $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/usr/work/mylib ์ด ์ค์ ์ ์๊ตฌ์ ์ด์ง ์์ ํฐ๋ฏธ๋์ ๋ซ์ผ๋ฉด ์ฌ๋ผ์ง๋ค. 2. ~/.bashrc ์ง์ ์์ bashrc๋ ๋ณ์นญ(alias)๊ณผ bash๊ฐ ์ํ๋ ๋ ์คํ๋๋ ํจ์๋ฅผ ์ ์ดํ๋ ์ง์ญ์ ์ธ ์์คํ ์ค์ ๊ณผ ๊ด๋ จ๋ ํ์ผ๋ก์จ, ๋ชจ๋ ํ๋ก๊ทธ๋จ์ด ์คํ๋๊ธฐ ์ ์ํ๋๋ค. vi ~/.bashrc (ํ์ผ๋ช ์์ .์ ์จ๊นํ์ผ์ ์๋ฏธ) export LD_LIBRARY_PATH=/home/user/work/mylib:${LD_LIBRARY_PATH} ์์ ๋ช ๋ น์ด๋ฅผ ์ถ๊ฐํด์ฃผ๊ณ ์ ์ฅ(:w) ํด์ฃผ๋ฉด ์๊ตฌ์ .. 2015. 3. 20. ์ด์ 1 ยทยทยท 4 5 6 7 8 9 10 11 ๋ค์