Skip to content

Commit

Permalink
fix the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Dec 22, 2024
1 parent a5934a9 commit a5c614d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hgeometry-examples/draw/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Test.QuickCheck

type R = RealNumber 5

renderGraph :: PlaneGraph QuickCheckWorld (Point 2 R) () () -> IpePage R
renderGraph :: CPlaneGraph QuickCheckWorld (Point 2 R) () () -> IpePage R
renderGraph gr = fromContent $
concat [ [ iO $ defIO p | p <- gr^..vertices ]
, [ iO $ defIO seg | seg <- gr^..edgeSegments ]
Expand Down
2 changes: 1 addition & 1 deletion hgeometry-examples/skia/GeometryStore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ data Geom = G_Point (Point 2 R :+ Attributes (Point 2 R))

data MyWorld

type PlaneGraph' r = PlaneGraph MyWorld (Point 2 r) PolygonEdgeType PolygonFaceData
type PlaneGraph' r = CPlaneGraph MyWorld (Point 2 r) PolygonEdgeType PolygonFaceData

--------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion hgeometry-examples/skia/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ currentStatus m1 m2
-- in planeGraphs
data MyWorld

type PlaneGraph' r = PlaneGraph MyWorld (Point 2 r) PolygonEdgeType PolygonFaceData
type PlaneGraph' r = CPlaneGraph MyWorld (Point 2 r) PolygonEdgeType PolygonFaceData

--------------------------------------------------------------------------------
-- * Data Type representing all our modal data
Expand Down
2 changes: 1 addition & 1 deletion hgeometry-examples/triangulateWorld/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ mainWith (Options inFile outFile) = do
intersections' :: Set.Set (Point 2 R)
intersections' = foldMap computeIntersections polies

subdivs :: [PlaneGraph PX (Point 2 R) _ _]
subdivs :: [CPlaneGraph PX (Point 2 R) _ _]
subdivs = map (\(pg :+ _) -> triangulate pg) polies'

triangles' :: [SimplePolygon (Point 2 R :+ _)]
Expand Down

0 comments on commit a5c614d

Please sign in to comment.