30 likes | 236 Views
Install FLTK on Mac. If ./configure && make && make install has errors, try mac ports. Go to http://www.macports.org/ or google Macports and download mac ports. In terminal, sudo port install fltk You will find fluid and fltk-config in /opt/local/bin
E N D
Install FLTK on Mac • If ./configure && make && make install has errors, try mac ports. • Go to http://www.macports.org/ or google Macports and download mac ports. • In terminal, • sudoport install fltk • You will find fluid and fltk-config in /opt/local/bin • fltk-config --compile myprogram.cpp • ./myprogram
User defined class Inherit Fl_Gl_Window Your user interface Fl_Window Fl_Slider
Normalization Before Normalization (x_max, y_max, z_max) • For every vertex (x,y,z) in the obj mesh file • Find x_min,y_min,z_minx_max,y_max,z_max • Find the max length max_length = max( x_max-x_min, y_max-y_min, z_max-z_min) • For vertex (x, y, z) the new position will be ((x-x_min)/max_length, (y-y_min)/max_length, (z-z_min)/max_length) (x, y, z) (x_min, y_min, z_min) After Normalization <=1 <=1 <=1