Copyright | (C) 2017 Maksymilian Owsianny |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Maksymilian.Owsianny@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Set Operations of Polytopes by Boundary Filtering.
- data Volume b v n = Volume {
- volumeFacets :: [Facet b v n]
- volumeTree :: BSP (Plane v n)
- makeVolume :: Clip b v n => [Facet b v n] -> Volume b v n
- emptyVolume :: Volume b v n
- mergeVolumes :: (Clip b v n, Functor v, Num n) => SetOperation -> Volume b v n -> Volume b v n -> Volume b v n
- type Volume2D = Volume (FB2 V2 Double) V2 Double
- type Volume3D = Volume (FB3 V3 Double) V3 Double
Documentation
Volume, currently represented as a list of Facets and a BSP Tree.
Volume | |
|
makeVolume :: Clip b v n => [Facet b v n] -> Volume b v n Source #
Construct Volume from a list of Facets representing it's boundary.
emptyVolume :: Volume b v n Source #
Empty volume.
mergeVolumes :: (Clip b v n, Functor v, Num n) => SetOperation -> Volume b v n -> Volume b v n -> Volume b v n Source #
Merge two Volumes under a specified Set Operation.