implicit-0.1.0: Math-inspired programmatic 2&3D CAD: CSG, bevels, and shells; gcode export..

Safe HaskellSafe
LanguageHaskell98

Graphics.Implicit.Primitives

Synopsis

Documentation

translate :: Object obj vec => vec -> obj -> obj Source #

Translate an object by a vector of appropriate dimension.

scale :: Object obj vec => vec -> obj -> obj Source #

Scale an object

outset :: Object obj vec => -> obj -> obj Source #

Outset of an object.

complement :: Object obj vec => obj -> obj Source #

Complement an Object

union :: forall obj vec. Object obj vec => [obj] -> obj Source #

intersect :: forall obj vec. Object obj vec => [obj] -> obj Source #

difference :: forall obj vec. Object obj vec => [obj] -> obj Source #

unionR :: Object obj vec => -> [obj] -> obj Source #

Rounded union

intersectR :: Object obj vec => -> [obj] -> obj Source #

Rounded minimum

differenceR :: Object obj vec => -> [obj] -> obj Source #

Rounded difference

shell :: Object obj vec => -> obj -> obj Source #

Make a shell of an object.

getBox :: Object obj vec => obj -> (vec, vec) Source #

Get the bounding box an object

getImplicit :: Object obj vec => obj -> vec -> Source #

Get the implicit function for an object

sphere Source #

Arguments

::

Radius of the sphere

-> SymbolicObj3

Resulting sphere

rect3R Source #

Arguments

::

Rounding of corners

-> ℝ3

Bottom.. corner

-> ℝ3

Top right... corner

-> SymbolicObj3

Resuting cube - (0,0,0) is bottom left...

circle Source #

Arguments

::

radius of the circle

-> SymbolicObj2

resulting circle

cylinder Source #

Arguments

::

Radius of the cylinder

->

Height of the cylinder

-> SymbolicObj3

Resulting cylinder

cylinder2 Source #

Arguments

::

Radius of the cylinder

->

Second radius of the cylinder

->

Height of the cylinder

-> SymbolicObj3

Resulting cylinder

rectR Source #

Arguments

::  
-> ℝ2

Bottom left corner

-> ℝ2

Top right corner

-> SymbolicObj2

Resulting square (bottom right = (0,0) )

polygonR Source #

Arguments

::

Rouding of the polygon

-> [ℝ2]

Verticies of the polygon

-> SymbolicObj2

Resulting polygon

implicit :: Object obj vec => (vec -> ) -> (vec, vec) -> obj Source #