Beispiel #1
0
 public Edge(Triangle right, Vector3 start, Vector3 end)
 {
     this.rightFace = right;
     this.start = start;
     this.end = end;
     this.dir = end - start;
 }
Beispiel #2
0
 public override bool Test(Triangle other)
 {
     return IntersectionTests.Test(this.sray, other.P1, other.P2, other.P3);
 }
Beispiel #3
0
 public override bool Test(Triangle other)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 public abstract bool Test(Triangle other);
Beispiel #5
0
 public override BoundingVolume Merge(Triangle other)
 {
     throw new NotImplementedException();
 }
Beispiel #6
0
        public override BoundingVolume Merge(Triangle other)
        {
            var otherS = SharpDX.BoundingSphere.FromPoints(new[] { other.P1, other.P2, other.P3 });

            return(new BoundingSphere(SharpDX.BoundingSphere.Merge(this.sSphere, otherS)));
        }
Beispiel #7
0
 public override bool Test(Triangle other)
 {
     return(IntersectionTests.Test(this, other.P1, other.P2, other.P3));
 }
Beispiel #8
0
 public abstract BoundingVolume Merge(Triangle other);
Beispiel #9
0
 public override BoundingVolume Merge(Triangle other)
 {
     var otherS = SharpDX.BoundingSphere.FromPoints(new[] { other.P1, other.P2, other.P3 });
     return new BoundingSphere(SharpDX.BoundingSphere.Merge(this.sSphere, otherS));
 }
 public override BoundingVolume Merge(Triangle other)
 {
     var otherB = SharpDX.BoundingBox.FromPoints(new[] { other.P1, other.P2, other.P3 });
     return new AxisAlignedBoundingBox(SharpDX.BoundingBox.Merge(this.sbb, otherB));
 }