コード例 #1
0
 public BoundingVolumeHierarchy(ITraceable nodeA, ITraceable nodeB, int splittingPlane)
 {
     this.splittingPlane = splittingPlane;
     this.nodeA          = nodeA;
     this.nodeB          = nodeB;
     this.Aabb           = nodeA.GetAxisAlignedBoundingBox() + nodeB.GetAxisAlignedBoundingBox();   // we can cache this because it is not allowed to change.
 }
コード例 #2
0
 public BoundingVolumeHierarchy(ITraceable nodeA, ITraceable nodeB)
 {
     this.nodeA     = nodeA;
     this.nodeB     = nodeB;
     Aabb           = nodeA.GetAxisAlignedBoundingBox() + nodeB.GetAxisAlignedBoundingBox();
     splittingPlane = Aabb.XSize > Aabb.YSize ? 0 : 1;
     splittingPlane = Aabb.Size[splittingPlane] > Aabb.ZSize ? splittingPlane : 2;
 }
コード例 #3
0
ファイル: Difference.cs プロジェクト: larsbrubaker/agg-sharp
 public AxisAlignedBoundingBox GetAxisAlignedBoundingBox()
 {
     return(primary.GetAxisAlignedBoundingBox());
 }