Hack fix to wall carving, expand polygon and retry if first cut fails
This commit is contained in:
+2
-6
@@ -41,7 +41,7 @@ shrinkTris (x:xs) = xs : map (x :) (shrinkTris xs)
|
||||
|
||||
genTri = zip <$> trip <*> trip
|
||||
where
|
||||
trip = vectorOf 3 $ fmap fromIntegral $ choose (0,5::Int)
|
||||
trip = vectorOf 3 $ fmap fromIntegral $ choose (0,3::Int)
|
||||
|
||||
genTris = listOf genTri
|
||||
|
||||
@@ -49,9 +49,5 @@ genTris = listOf genTri
|
||||
--extractLoops [] = []
|
||||
--extractLoops (x:xs) =
|
||||
|
||||
--[[(4.0,10.0),(6.0,2.0),(3.0,0.0)],[(9.0,3.0),(2.0,5.0),(0.0,6.0)]]
|
||||
--
|
||||
--[[(314.0,-396.0),(0.0,-223.71985),(-239.32773,357.25983)],[(0.0,0.0),(-84.0,-177.0),(237.0,-355.5366)]]
|
||||
--
|
||||
--
|
||||
--[[(5.0,2.0),(3.0,5.0),(1.0,2.0)],[(3.0,2.0),(2.0,0.0),(4.0,0.0)],[(5.0,1.0),(3.0,0.0),(3.0,1.0)]]
|
||||
--[[(0.0,1.0),(3.0,4.0),(5.0,5.0)],[(2.0,0.0),(2.0,4.0),(1.0,1.0)],[(5.0,5.0),(2.0,2.0),(1.0,3.0)]]
|
||||
|
||||
Reference in New Issue
Block a user