IRIT Solid Modeler 3 D MAP Lab JoonKyung
IRIT Solid Modeler 3 D MAP Lab. Joon-Kyung Seong
Course TA n n Name: Joon-Kyung Seong Office: 302, 315 -2 Office Hours: Tue. , Thu. 9: 30 -12: 30 Class Homepage: http: //3 map. snu. ac. kr/course/2003/a dvance/main. html
Contents n n n n Introduction Irit as a Script Language How to install? Irit as a CAGD Library How to implement? Enhancing the results VTK: Graphics Library
Introduction n Free-form tools in CG and CAGD. n n Deals with Curves and Surfaces(Bezier or B-spline form) Provide mathematical basis and even some futuristic way of modeling and rendering the real world.
Generated by Sagi Schein, Israel
Introduction n Irit as a solid modeler and as a CAGD library. n n n Most powerful CAGD library in the world. Supports basic operations on the curves and surfaces. (symbolic operations or numeric methods) Developed by Prof. Gershon Elber. (Technion, Israel) Anim
How to install? n 1. Get a source code n n www. cs. technion. ac. il/~gershon/temp/irit-sm. zip 2. Compile the source code Unix : makeflag. unx n Windows : makeflag. wnt ‘make’, ‘nmake’ with ‘-f’ option n n 3. Set environments for IRIT n n set IRIT_PATH=c: /irit-sm/ntbin/ set IRIT_DISPLAY=wntgdrvs –sset IRIT_BIN_IPC=1 4. Test n n Run irit (in DOS window). Type “include(“demo. irt”); ”
Special Linking to Emacs n Emacs extension n n <meta key> + E : execute one line <meta key> + h : help on the command <meta key> + s : command line Usage n n Install emacs Copy the file ‘_emacs’ to C:
Irit as a script language n You can model and render the real world with some amounts of work.
Irit as a script language n n Interpret command line by line. Grammar of the language is similar to C language. Example : teapot. irt Should refer user’s manual (www. cs. technion. ac. il/~irit/user_ma n. html. index. html)
Irit as a script language n Generate Animation easily.
Irit as a script language n How to generate an animation in irit script? n n n Create a animation curve Example: snake puzzle Animation with POV-Ray n n n Generate a sequence of data files using irit Irit 2 pov Render using POV-Ray
Irit as a CAGD Library n n n Supports almost every basic operations on the Free-form domain. Link and call the library in your C/C++ project. Programmer’s manual: (www. cs. technion. ac. il/~irit/prog_ma n. html)
Implementation Examples n Simple Surface/Surface Intersection 3 equations in 4 variables Multivariate Solver in Irit
Implementation Examples (Ringed-Ringed Intersection)
Implementation Examples (Convex Hull)
Implementation Examples (Convex Hull)
Enhancing the Results n Make a ps file n n Command : irit 2 ps ( dat ps ) Enhancing reality : illustrt – simple line illustration filter Eg : illustrt –f 0 512 –l 0. 01 –t 0. 01 eg. mat eg. dat|irit 2 ps –d – 0. 8 0. 2 –u -> eg. ps Make a rendered image n n Command : irender ( dat ppm, rle ) Eg : irender –s 700 –M Flat –b 255 255 –A sync –i rle eg. mat eg. dat > eg. rle
VTK Visualization Tookit Object Oriented Language C++/Tcl
- Slides: 19