Graphics.Implicit.Operations
- translate :: (Additive a a a, AdditiveInvertable a) => a -> (a -> ℝ) -> a -> ℝ
- scale :: Multiplicative a ℝ a => ℝ -> (a -> ℝ) -> a -> ℝ
- complement :: (a -> ℝ) -> a -> ℝ
- union :: [a -> ℝ] -> a -> ℝ
- intersect :: [a -> ℝ] -> a -> ℝ
- difference :: [a -> ℝ] -> a -> ℝ
- unionR :: ℝ -> [a -> ℝ] -> a -> ℝ
- intersectR :: ℝ -> [a -> ℝ] -> a -> ℝ
- differenceR :: ℝ -> [a -> ℝ] -> a -> ℝ
- shell :: ℝ -> (a -> ℝ) -> a -> ℝ
- slice :: ℝ -> Obj3 -> Obj2
- bubble :: ℝ -> Obj2 -> Obj3
- extrude :: ℝ -> Obj2 -> Obj3
- extrudeR :: ℝ -> ℝ -> Obj2 -> Obj3
- extrudeOnEdgeOf :: Obj2 -> Obj2 -> Obj3
Documentation
Arguments
| :: (Additive a a a, AdditiveInvertable a) | |
| => a | Vector to translate by (Also: a is a vector, blah, blah) |
| -> (a -> ℝ) | Object to translate |
| -> a -> ℝ | Resulting object |
Translate an object by a vector of appropriate dimension.
Arguments
| :: Multiplicative a ℝ a | |
| => ℝ | Amount to scale by |
| -> (a -> ℝ) | Object to scale |
| -> a -> ℝ | Resulting scaled object |
Scale an object
Union a list of objects
Arguments
| :: [a -> ℝ] | List of objects to intersect |
| -> a -> ℝ | The object resulting from the intersection |
Intersect a list of objects
Difference a list of objects
Rounded union
Rounded minimum
Rounded difference
Slice a 3D objects at a given z value to make a 2D object.
Extrude a 2D object. (The extrusion goes into the z-plane)
Arguments
| :: ℝ | Radius of rounding |
| -> ℝ | Length to extrude |
| -> Obj2 | 2D object to extrude |
| -> Obj3 | Resulting 3D object |
Rounded extrude. Instead of the extrude having a flat top or bottom, it is bevelled.