Ejemplo n.º 1
0
        public vtkExodusModel ExtractExodusModel(vtkIdTypeArray globalCellIdList, vtkUnstructuredGrid grid)
        {
            vtkExodusModel vtkExodusModel = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkExodusModel.vtkExodusModel_ExtractExodusModel_03(base.GetCppThis(), (globalCellIdList == null) ? default(HandleRef) : globalCellIdList.GetCppThis(), (grid == null) ? default(HandleRef) : grid.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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

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