DIAG: simplify by using drawP
This commit is contained in:
parent
78a3dd8b95
commit
562f7a58e8
@ -87,9 +87,8 @@ polyLines = Diag pp
|
|||||||
polyIntersection :: Diag
|
polyIntersection :: Diag
|
||||||
polyIntersection = Diag pi'
|
polyIntersection = Diag pi'
|
||||||
where
|
where
|
||||||
pi' p (Objects (x:y:_)) = position (zip vtpi (repeat dot))
|
pi' p (Objects (x:y:_)) = drawP vtpi (dotSize p) red
|
||||||
where
|
where
|
||||||
dot = (circle $ dotSize p :: Diagram Cairo R2) # fc red # lc red
|
|
||||||
vtpi = intersectionPoints
|
vtpi = intersectionPoints
|
||||||
. sortLexPolys
|
. sortLexPolys
|
||||||
$ (sortLexPoly x,
|
$ (sortLexPoly x,
|
||||||
@ -120,12 +119,7 @@ polyIntersectionText = Diag pit'
|
|||||||
convexHP :: Diag
|
convexHP :: Diag
|
||||||
convexHP = Diag chp
|
convexHP = Diag chp
|
||||||
where
|
where
|
||||||
chp p (Object vt) =
|
chp p (Object vt) = drawP (grahamCH vt) (dotSize p) red
|
||||||
position (zip vtch
|
|
||||||
(repeat dot))
|
|
||||||
where
|
|
||||||
dot = (circle $ dotSize p :: Diagram Cairo R2) # fc red # lc red
|
|
||||||
vtch = grahamCH vt
|
|
||||||
chp _ _ = mempty
|
chp _ _ = mempty
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user