Move towards replacing F.foldM with streaming, using mutable accumulator

This commit is contained in:
2021-08-09 19:07:58 +02:00
parent 8cda9b4e1b
commit b580666c57
5 changed files with 35 additions and 38 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ polyToPics = map helpPoly3D . _pyFaces
helpPoly3D :: [(Point3, Point4)] -> [Verx]
helpPoly3D vs = map f $ polyToTris vs
where
f (pos,col) = Verx pos col PolyV 0
f (pos,col) = Verx pos col PolyV 0 polyNum
polysToPic :: [Polyhedra] -> Picture
polysToPic = pictures . concatMap polyToPics