Пример #1
0
 public Edge(Triangle right, Vector3 start, Vector3 end)
 {
     this.rightFace = right;
     this.start = start;
     this.end = end;
     this.dir = end - start;
 }
Пример #2
0
 public override bool Test(Triangle other)
 {
     return IntersectionTests.Test(this.sray, other.P1, other.P2, other.P3);
 }
Пример #3
0
 public override bool Test(Triangle other)
 {
     throw new NotImplementedException();
 }
Пример #4
0
 public abstract bool Test(Triangle other);
Пример #5
0
 public override BoundingVolume Merge(Triangle other)
 {
     throw new NotImplementedException();
 }
Пример #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)));
        }
Пример #7
0
 public override bool Test(Triangle other)
 {
     return(IntersectionTests.Test(this, other.P1, other.P2, other.P3));
 }
Пример #8
0
 public abstract BoundingVolume Merge(Triangle other);
Пример #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));
 }
Пример #10
0
 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));
 }