this capture the view matrix of the papplet and stores it . call this first once you set the view with camera/ortho/rotate / translate/etc . concode_field_sep PVector ptEndPos concode_elem_sep boolean m_bValid concode_elem_sep PMatrix3D m_pMatrix concode_elem_sep int[] m_aiViewport concode_elem_sep PVector ptStartPos concode_field_sep boolean calculatePickPoints concode_elem_sep PVector intersect concode_elem_sep PVector unproject concode_elem_sep boolean gluUnProject
void function ( PApplet arg0 ) { PGraphics3D loc0 = ( PGraphics3D ) arg0 . g ; if ( loc0 != null ) { m_pMatrix . set ( loc0 . projection ) ; m_pMatrix . apply ( loc0 . modelview ) ; m_pMatrix . invert ( ) ; m_aiViewport [ 0 ] = 0 ; m_aiViewport [ 1 ] = 0 ; m_aiViewport [ 2 ] = loc0 . width ; m_aiViewport [ 3 ] = loc0 . height ; } }