Safe Haskell | None |
---|---|
Language | Haskell2010 |
Waterfall.Diagram
Synopsis
- data Diagram
- data LineType
- data Visibility
- solidDiagram :: V3 Double -> Solid -> Diagram
- pathDiagram :: LineType -> Visibility -> Path2D -> Diagram
- diagramLines :: LineType -> Visibility -> Diagram -> [Path2D]
- diagramBoundingBox :: Diagram -> Maybe (V2 Double, V2 Double)
Documentation
This is similar to a collection of Path2D
indexed by LineType
and Visibility
Instances
Monoid Diagram Source # | |
Semigroup Diagram Source # | |
Transformable2D Diagram Source # | |
Categorize the lines in a diagram
Constructors
OutLine | Represents lines at the edge of objects, the "silhouette" Does not include those parts of the silhouette that are also sharp |
SharpLine | Sharp edges, parts of an object with C0 Continuity |
RawLine TypeOfResultingEdge |
data Visibility Source #
Whether an edge is visible in a given projection, or not
Instances
Show Visibility Source # | |
Defined in Waterfall.Diagram Methods showsPrec :: Int -> Visibility -> ShowS # show :: Visibility -> String # showList :: [Visibility] -> ShowS # | |
Eq Visibility Source # | |
Defined in Waterfall.Diagram | |
Ord Visibility Source # | |
Defined in Waterfall.Diagram Methods compare :: Visibility -> Visibility -> Ordering # (<) :: Visibility -> Visibility -> Bool # (<=) :: Visibility -> Visibility -> Bool # (>) :: Visibility -> Visibility -> Bool # (>=) :: Visibility -> Visibility -> Bool # max :: Visibility -> Visibility -> Visibility # min :: Visibility -> Visibility -> Visibility # |
solidDiagram :: V3 Double -> Solid -> Diagram Source #
Produce a diagram of a Solid
Uses an orthographic projection, viewed from the provided direction
pathDiagram :: LineType -> Visibility -> Path2D -> Diagram Source #
diagramLines :: LineType -> Visibility -> Diagram -> [Path2D] Source #