Пример #1
0
 public void A_CSG_intersect_preserves_all_intersections_where_both_shapes_overlap(
     bool isLeftHit,
     bool isWithinLeft,
     bool isWithinRight,
     bool expectedResult)
 {
     CsgShape.IsIntersectionAllowed(
         CsgOperation.Intersection,
         isLeftHit,
         isWithinLeft,
         isWithinRight)
     .Should()
     .Be(expectedResult);
 }
Пример #2
0
 public void A_CSG_difference_preserves_all_intersections_not_exclusively_inside_the_object_on_the_right(
     bool isLeftHit,
     bool isWithinLeft,
     bool isWithinRight,
     bool expectedResult)
 {
     CsgShape.IsIntersectionAllowed(
         CsgOperation.Difference,
         isLeftHit,
         isWithinLeft,
         isWithinRight)
     .Should()
     .Be(expectedResult);
 }
Пример #3
0
 public void A_CSG_union_preserves_all_intersections_on_the_exterior_of_both_shapes(
     bool isLeftHit,
     bool isWithinLeft,
     bool isWithinRight,
     bool expectedResult)
 {
     CsgShape.IsIntersectionAllowed(
         CsgOperation.Union,
         isLeftHit,
         isWithinLeft,
         isWithinRight)
     .Should()
     .Be(expectedResult);
 }