Skip to content

Commit

Permalink
component, main module
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Apr 24, 2024
1 parent 7801041 commit 683f782
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hgeometry/hgeometry.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ library
HGeometry.PlaneGraph
HGeometry.PlaneGraph.Class

HGeometry.PlanarSubdivision
HGeometry.PlanarSubdivision.Class

HGeometry.Polygon.Class

HGeometry.Polygon.Simple
Expand Down
16 changes: 16 additions & 0 deletions hgeometry/src/HGeometry/PlanarSubdivision.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--------------------------------------------------------------------------------
-- |
-- Module : HGeometry.PlnarSubdivision
-- Copyright : (C) Frank Staals
-- License : see the LICENSE file
-- Maintainer : Frank Staals
-- Description : Planar Subdivisions
--
--------------------------------------------------------------------------------
module HGeometry.PlanarSubdivision.Raw
( module HGeometry.PlanarSubdivision.Class
, PlanarSubdivision
)

import HGeometry.PlanarSubdivision.Basic
import HGeometry.PlanarSubdivision.Class
26 changes: 26 additions & 0 deletions hgeometry/src/HGeometry/PlanarSubdivision/Component.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--------------------------------------------------------------------------------
-- |
-- Module : HGeometry.PlnarSubdivision.Component
-- Copyright : (C) Frank Staals
-- License : see the LICENSE file
-- Maintainer : Frank Staals
-- Description : Connected Components in a PlanarSubdivision
--
--------------------------------------------------------------------------------
module HGeometry.PlanarSubdivision.Component
( Component
) where

import HGeometry.PlanarSubdivision.Raw
import HGeometry.PlaneGraph.Type
import Hiraffe.PlanarGraph (FaceId, VertexId)
import Hiraffe.PlanarGraph.Dart (Dart)

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

-- | A connected component.
--
-- For every face f, and every hole in this face, the facedata points to a dart
-- d on the hole s.t. this dart has the face f on its left. i.e.
-- leftFace d = f
type Component s = PlaneGraph (Wrap s) (VertexId s) (Dart s) (FaceId s)

0 comments on commit 683f782

Please sign in to comment.