Setup basic tests for wall carving

This commit is contained in:
jgk
2021-04-03 13:43:56 +02:00
parent 9372db9cdc
commit 3a1b15aced
2 changed files with 35 additions and 1 deletions
+2
View File
@@ -48,6 +48,8 @@ checkWallLeft (x,y) wls = case filter (\(a,b) -> b == x ) wls of
-- given a polygon of points and collection of walls, cuts out the polygon
-- ie returns a new set of walls with a hole determined by anticlockwise ordering of the points
cutWalls' :: [Point2] -> [WallP] -> [WallP]
cutWalls' [] walls = walls
cutWalls' [x,y] walls = walls
cutWalls' qs walls =
-- nub
-- . filter (not.wallIsZeroLength)