예제 #1
0
 public EnumerableSolids Intersect(KtRegion region)
 {
     if (region is KtHollowRegion hollow)
     {
         return(Intersect(hollow));
     }
     if (region is KtSolidRegion solid)
     {
         return(Intersect(solid));
     }
     return(null);
 }
예제 #2
0
 public override bool Inscribes(KtRegion region) => region?.All(Inscribes) == true && holes.All(reg => !reg.Inscribes(region));