#include#include #include class txt2float { public: void push_back(const char * text) { float f = (float) atof(text); m_vf.push_back(f); char * p = (char *) text; while (*p) { if (*p == 0x20) { f = (float) atof(p); m_vf.push_back(f); } p++; } } void clear() { m_vf.clear(); } float * data() { return m_vf.data(); } std::vector & get() { return m_vf; } private: std::vector m_vf; }; { txt2float tf; tf.push_back(Value); SubMaterial.Diffuse = tf.get(); }
๐ ️ Code Note & Usage
* Human + AI Collaboration: ์ฌ๊ธฐ ๋ฌธ์์ ์ฝ๋๋ ์ ๊ฐ ์ํฐ๋ฆฌ๋ก ๊ตฌ์กฐ๋ฅผ ์ก๊ณ , Google AI (๊ตฌ๊ธ๊ฒ์ AI ๋ชจ๋)๋ฅผ ๋ฌ๋ฌ ๋ณถ์๊ฐ๋ฉฐ(?) ์์ฑํ ์ํฐ๋ฆฌ ์ฝ๋ ๋ญ์น๋ค ์
๋๋ค.
* Free to Use: ๊ฐ์ธ์ ์ธ ์ทจ๋ฏธ๋ก ์ ๋ฆฌํ ๋ฌธ์์ ์ํฐ๋ฆฌ ์ฝ๋ ๋ญ์น ์ง๋ง, ๊ณต๋ถ ํ์ค๋ ์กฐ๊ธ์ด๋๋ง ๋์์ด ๋์ ๋ค๋ฉด ์์ ๋กญ๊ฒ ๊ฐ์ ธ๊ฐ์ ์ฌ์ฉํ์ค ์ ์๋๋ก ๊ณต๊ฐํฉ๋๋ค!
* ⚠️ Warning: ์ฌ๊ธฐ ์ํฐ๋ฆฌ ์ฝ๋ ๋ญ์น๋ฅผ, ๊ฐ์ ธ๊ฐ์ ๊ธฐํ์ฝ ๊ผญ ์ฌ์ฉ ํ์ ๋ค๋ฉด ๊ผญ ๋ณธ์ธ์ ํ๊ฒฝ์ ๋ง๊ฒ ๋ฒ๊ทธ๋ ์๋ฌ๋ฅผ ๊ผญ ํ ๋ฒ ๋ ํ์ธ(์ฃผ์)ํ๊ณ ์ฌ์ฉํด ์ฃผ์ธ์.
※ ์ฝ๋๋ฅผ ์ฌ์ฉํ ๋๋ ํญ์ ์ฃผ์๊ฐ ํ์ํฉ๋๋ค. ※
2011๋ 3์ 8์ผ ํ์์ผ
txt2float
Git ์ค์น๋ถํฐ ์ฌ์ฉ์ ๋ฑ๋ก๊น์ง์ ํต์ฌ์ ์ค์น ํ๋ก๊ทธ๋จ์ ์คํํ ํ, ํฐ๋ฏธ๋์์ ์ด๋ฆ๊ณผ ์ด๋ฉ์ผ์ ๋ฑ๋กํ๋ ๊ฒ์ ๋๋ค.
์ด์์ฒด์ (OS)๋ณ ์ค์น ๋ฐ ๋ฑ๋ก ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค. * Windows: ์์ธํ ๋ด์ฉ์ ์๋ ์ฒจ๋ถํ ๊นํ๋ธ ๊ธฐ์คํธ(GitHub Gist) ๋งํฌ๋ค์ด ๋ฌธ์๋ฅผ ํตํด ๋ฐ๋ก ๋ณต์ฌํ์ฌ ์ฌ์ฉํ์ค ์ ์์ต๋๋ค.
-
bool atob(const char * string) { if (!strcmp(string, "true")) return true; return false; }
-
Environment Variables: MAXSDKPATH=C:\Program Files (x86)\Autodesk\3ds Max 2010 SDK Sample source http://download.autodesk.com/media/...
-
/// CXXXView.cpp void CXXXView::OnInitialUpdate() { CView::OnInitialUpdate(); // TODO: Add your specialized code here and/or call the ...
๋๊ธ ์์:
๋๊ธ ์ฐ๊ธฐ