{-# LANGUAGE CApiFFI #-}
module OpenCascade.TopoDS.Shell
( Shell
, new
) where 

import OpenCascade.TopoDS.Types
import OpenCascade.TopoDS.Internal.Destructors
import Foreign.Ptr
import Data.Acquire 

-- new

foreign import capi unsafe "hs_TopoDS_Shell.h hs_new_TopoDS_Shell" rawNew :: IO (Ptr Shell)

new :: Acquire (Ptr Shell)
new :: Acquire (Ptr Shell)
new = IO (Ptr Shell) -> (Ptr Shell -> IO ()) -> Acquire (Ptr Shell)
forall a. IO a -> (a -> IO ()) -> Acquire a
mkAcquire IO (Ptr Shell)
rawNew (Ptr Shape -> IO ()
deleteShape (Ptr Shape -> IO ())
-> (Ptr Shell -> Ptr Shape) -> Ptr Shell -> IO ()
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Ptr Shell -> Ptr Shape
forall a b. Ptr a -> Ptr b
castPtr)