topical media & game development

talk show tell print

student-ar-org-papervision3d-core-culling-DefaultLineCuller.ax

student-ar-org-papervision3d-core-culling-DefaultLineCuller.ax [swf] [flash] flex


  package org.papervision3d.core.culling {
        import org.papervision3d.core.geom.renderables.Line3D;        
        import org.papervision3d.core.culling.ILineCuller;
          
          
*
author: Seb Lee-Delisle */ public class @ax-student-ar-org-papervision3d-core-culling-DefaultLineCuller implements ILineCuller { public function @ax-student-ar-org-papervision3d-core-culling-DefaultLineCuller() { } public function testLine(line : Line3D) : Boolean { // culls if one of the points is behind the camera... return ((line.v0.vertex3DInstance.visible)&&(line.v1.vertex3DInstance.visible)); } } }

(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2780434-1"; urchinTracker(); </script>