cga/Graphics
hasufell d845cc0691
HALFEDGE: make 'indirectToDirect' a safe function
We had to add NoFace/NoEdge/NoVert constructors to our half-edge
data structures, because using "Maybe HeEdge a" as the result value
of 'indirectToDirect' causes an infinite recursion, since the whole
data structure (which is cyclic and infinite) has to be evaluated
in order to know which constructor to use.

Unfortunately this makes the code quite hard to read.

TODO: add pseudo-code
2015-02-09 17:58:33 +01:00
..
Diagram Revert "Remove almost all 'type' usage to make types more transparent" 2015-02-04 00:51:03 +01:00
HalfEdge.hs HALFEDGE: make 'indirectToDirect' a safe function 2015-02-09 17:58:33 +01:00