waterfall-cad-0.6.0.0: Declarative CAD/Solid Modeling Library
Safe HaskellNone
LanguageHaskell2010

Waterfall.TwoD.Internal.Shape

Synopsis

Documentation

newtype Shape Source #

A Region in 2D Space

In general, this is used as a face, and extruded along some sort of path

Under the hood, this is represented by an OpenCascade Shape

This should be of type Face, constrained to the plane \( z=0 \).

Please feel free to report a bug if you're able to construct a Shape which does not lie on this plane (without using Internal functions). Or which is not either a Face, or a composite of faces.

Constructors

Shape 

Fields

union2D :: Shape -> Shape -> Shape Source #

Take the union of two 2D shapes. The region occupied by either one of them

difference2D :: Shape -> Shape -> Shape Source #

Take the difference of two 2D shapes. The region occupied by the first, but not the second

intersection2D :: Shape -> Shape -> Shape Source #

Take the intersection of two 2D shapes. The region occupied by both of them

unions2D :: [Shape] -> Shape Source #

Take the union of a list of 2D shapes May be more performant than chaining multiple applications of union2D

intersections2D :: [Shape] -> Shape Source #

Take the intersection of a list of 2D shapes May be more performant than chaining multiple applications of intersection2D

emptyShape :: Shape Source #

An empty 2D shape