I had to breakdown moveresize.c (a Lightdraw demo, not written by me) into manageable chunks for a few purposes
- It's easier for me to document along the way.
- Refactoring will be much easier after documentation.
- It will be obvious which portion of code goes into the Lightdraw libraries eventually.
0205
Peng and JL's presentation went pretty well. Luckily Peng spotted a question the night before and asked me about exceptional common-vertex cases for the in-out algorithm (whether a point is inside or outside of a polygon). Of which I just gave the typical solution from the scan-line algorithm that I learned from Computer Graphics last semester.
Dr. Su Yi gave a few pointers for further developments during the discussion on contour processing. The contours could be converted into point sequences for plotting points as the user draws. The contour detection could then be based on a well defined polygon instead of using the current polygon approximation. This has to do geometry processing, something which I will have to look into.
Wonderful farewell lunch for Peng and JL at Au Da Paolo Petite Salut, a French restaurant located near Holland Village. Food was excellent. Best chicken leg I had in a long time, must go back there again! Did not recognise any of the wines they had there. Cost of wine there is rather steep at $16 by the glass.
0206
Half-Day. Laser tracking with screen coordinates on the way.
0207 - 0208
Happy Lunar New Year!
No comments:
Post a Comment