| 8198 | }; |
| 8199 | |
| 8200 | var checkTriangleVisibility = function ( v1, v2, v3 ) { |
| 8201 | |
| 8202 | _points3[ 0 ] = v1.positionScreen; |
| 8203 | _points3[ 1 ] = v2.positionScreen; |
| 8204 | _points3[ 2 ] = v3.positionScreen; |
| 8205 | |
| 8206 | if ( v1.visible === true || v2.visible === true || v3.visible === true || |
| 8207 | _clipBox.isIntersectionBox( _boundingBox.setFromPoints( _points3 ) ) ) { |
| 8208 | |
| 8209 | return ( ( v3.positionScreen.x - v1.positionScreen.x ) * |
| 8210 | ( v2.positionScreen.y - v1.positionScreen.y ) - |
| 8211 | ( v3.positionScreen.y - v1.positionScreen.y ) * |
| 8212 | ( v2.positionScreen.x - v1.positionScreen.x ) ) < 0; |
| 8213 | |
| 8214 | } |
| 8215 | |
| 8216 | return false; |
| 8217 | |
| 8218 | }; |
| 8219 | |
| 8220 | var pushLine = function ( a, b ) { |
| 8221 | |