Пример #1
0
        internal IntPtr CacheHandle()
        {
#if RHINO_SDK
            if (IntPtr.Zero == m_ptr_cache_handle)
            {
                m_ptr_cache_handle = UnsafeNativeMethods.CRhinoCacheHandle_New();
            }
#endif
            // 10 Jan 2019 S. BAer (RH-50309)
            // Use the shallow parent's cache handle if it exists. There
            // is no need to create a new cache handle when the geometry
            // is exactly the same
            if (IntPtr.Zero == m_ptr_cache_handle && m_shallow_parent != null)
            {
                return(m_shallow_parent.CacheHandle());
            }
            return(m_ptr_cache_handle);
        }