public new static vtkEdgeSubdivisionCriterion SafeDownCast(vtkObjectBase o)
        {
            vtkEdgeSubdivisionCriterion vtkEdgeSubdivisionCriterion = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkEdgeSubdivisionCriterion.vtkEdgeSubdivisionCriterion_SafeDownCast_12((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkEdgeSubdivisionCriterion = (vtkEdgeSubdivisionCriterion)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkEdgeSubdivisionCriterion.Register(null);
                }
            }
            return(vtkEdgeSubdivisionCriterion);
        }
Esempio n. 2
0
        public virtual vtkEdgeSubdivisionCriterion GetSubdivisionAlgorithm()
        {
            vtkEdgeSubdivisionCriterion vtkEdgeSubdivisionCriterion = null;
            uint   mteStatus   = 0u;
            uint   mteIndex    = 4294967295u;
            uint   rawRefCount = 0u;
            IntPtr intPtr      = vtkStreamingTessellator.vtkStreamingTessellator_GetSubdivisionAlgorithm_13(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

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