Reduce rendertype down to vertex information
This commit is contained in:
+3
-4
@@ -85,11 +85,10 @@ boxABC a b c =
|
||||
polyToPics :: Polyhedra -> [Picture]
|
||||
polyToPics = map helpPoly3D . _pyFaces
|
||||
|
||||
helpPoly3D :: [(Point3, Point4)] -> [(Int, RenderType)]
|
||||
helpPoly3D vs = zl $ RenderPoly $ polyToTris vs
|
||||
helpPoly3D :: [(Point3, Point4)] -> [Verx]
|
||||
helpPoly3D vs = map f $ polyToTris vs
|
||||
where
|
||||
zl :: RenderType -> [(Int,RenderType)]
|
||||
zl rt = [(0,rt)]
|
||||
f (pos,col) = Verx pos col PolyV 0
|
||||
|
||||
polysToPic :: [Polyhedra] -> Picture
|
||||
polysToPic = pictures . concatMap polyToPics
|
||||
|
||||
Reference in New Issue
Block a user