function _BoundingBoxDraw( ) { var frontOrBack = ( ( this.Parent.Fi < 90 ) || ( this.Parent.Fi >= 270 ) ); var leftOrRight = ( this.Parent.Fi >= 180 ); var topOrBottom = ( this.Parent.Th <= 0 ); drawFace( this, 'z', 'x', 'y', 0, 0, 1, topOrBottom, frontOrBack, leftOrRight ); drawFace( this, 'y', 'x', 'z', 1, 2, 3, leftOrRight, frontOrBack, topOrBottom ); drawFace( this, 'x', 'y', 'z', 2, 4, 5, frontOrBack, leftOrRight, topOrBottom ); }