Render circles as ellipses, allows for proper scaling
This commit is contained in:
@@ -166,7 +166,11 @@ picToLTree mx (PolygonCol i vs)
|
||||
in LLeaf $ RenderPoly $ zip (map zeroZ $ polyToTris ps) $ polyToTris cs
|
||||
| otherwise = LBranches []
|
||||
picToLTree mx (Circle i r)
|
||||
| Just i == mx || Nothing == mx = LLeaf $ RenderCirc $ ((0,0,0),black,r)
|
||||
| Just i == mx || Nothing == mx = LLeaf $ RenderEllipse
|
||||
[((-r, r,0), black)
|
||||
,((-r,-r,0), black)
|
||||
,(( r,-r,0), black)
|
||||
]
|
||||
| otherwise = LBranches []
|
||||
picToLTree mx (Ellipse i (ax,ay) (bx,by) r)
|
||||
| Just i == mx || Nothing == mx = LLeaf $ RenderEllipse [((ax,ay+r,0),black)
|
||||
|
||||
Reference in New Issue
Block a user