Merge Picture and RenderType datatypes

This commit is contained in:
2021-07-25 02:12:55 +02:00
parent 84a9badea8
commit f5873db68d
8 changed files with 143 additions and 238 deletions
+6 -1
View File
@@ -83,7 +83,12 @@ boxABC a b c =
faceNA = rhombus c b
polyToPics :: Polyhedra -> [Picture]
polyToPics = map Poly3D . _pyFaces
polyToPics = map helpPoly3D . _pyFaces
helpPoly3D vs = zl $ RenderPoly $ polyToTris vs
where
zl :: RenderType -> [(Int,RenderType)]
zl rt = [(0,rt)]
polysToPic :: [Polyhedra] -> Picture
polysToPic = pictures . concatMap polyToPics