Esempio n. 1
0
        public new vtkCell3D NewInstance()
        {
            vtkCell3D result      = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkCell3D.vtkCell3D_NewInstance_09(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkCell3D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Esempio n. 2
0
        public new static vtkCell3D SafeDownCast(vtkObjectBase o)
        {
            vtkCell3D vtkCell3D   = null;
            uint      mteStatus   = 0u;
            uint      mteIndex    = 4294967295u;
            uint      rawRefCount = 0u;
            IntPtr    intPtr      = vtkCell3D.vtkCell3D_SafeDownCast_10((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkCell3D = (vtkCell3D)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkCell3D.Register(null);
                }
            }
            return(vtkCell3D);
        }