-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A constructive solid modeling language. -- -- Mecha is a solid modeling language geared for designing mechanical -- components in 3D. @package mecha @version 0.0.0 module Language.Mecha.OpenGL vertex3 :: (Real a, Floating a, Real a1, Floating a1, Real a2, Floating a2) => a -> a1 -> a2 -> IO () normal3 :: (Real a, Floating a, Real a1, Floating a1, Real a2, Floating a2) => a -> a1 -> a2 -> IO () color3 :: (Real a, Floating a, Real a1, Floating a1, Real a2, Floating a2) => a -> a1 -> a2 -> IO () scale3 :: (Real a, Floating a, Real a1, Floating a1, Real a2, Floating a2) => a -> a1 -> a2 -> IO () translate3 :: (Real a, Floating a, Real a1, Floating a1, Real a2, Floating a2) => a -> a1 -> a2 -> IO () rotate3 :: (Real a, Floating a, Real a1, Floating a1, Real a2, Floating a2, Real a3, Floating a3) => a -> a1 -> a2 -> a3 -> IO () module Language.Mecha.Viewer viewer :: Model -> IO () instance Show State module Language.Mecha.Octree data Octree Octree :: Vertex -> Double -> Octree -> Octree -> Octree -> Octree -> Octree -> Octree -> Octree -> Octree -> Octree center :: Octree -> Vertex radius :: Octree -> Double u1 :: Octree -> Octree u2 :: Octree -> Octree u3 :: Octree -> Octree u4 :: Octree -> Octree l1 :: Octree -> Octree l2 :: Octree -> Octree l3 :: Octree -> Octree l4 :: Octree -> Octree Surface :: Vertex -> Vertex -> Color -> Octree point :: Octree -> Vertex normal :: Octree -> Vertex color :: Octree -> Color Inside :: Octree Outside :: Octree type Vertex = (Double, Double, Double) type Color = (Float, Float, Float) sphere :: Color -> Double -> Octree mesh :: Octree -> IO () union :: Octree -> Octree -> Octree intersection :: Octree -> Octree -> Octree difference :: Octree -> Octree -> Octree instance Eq GlCmd instance Eq Axis instance Show Octree instance Eq Octree module Language.Mecha.Solid data Solid data PrimQuery PrimInside :: PrimQuery PrimOutside :: PrimQuery PrimSurface :: Double -> Double -> Double -> PrimQuery primitive :: (Vertex -> Double -> PrimQuery) -> Solid transform :: Matrix -> Matrix -> Solid -> Solid translate :: Double -> Double -> Double -> Solid -> Solid scale :: Double -> Double -> Double -> Solid -> Solid rotate :: Double -> Double -> Double -> Double -> Solid -> Solid union :: Solid -> Solid -> Solid intersection :: Solid -> Solid -> Solid difference :: Solid -> Solid -> Solid module Language.Mecha.Primitive sphere :: Solid -- | Mecha Examples module Language.Mecha.Examples -- | A basic example. example :: IO () -- | Mecha is a Language for Constructive Solid Modeling module Language.Mecha -- | A basic example. example :: IO ()