示例#1
0
void ON_SurfaceProxy::DestroyRuntimeCache( bool bDelete )
{
  if ( m_stree ) 
  {
#if defined(OPENNURBS_PLUS_INC_)
    if ( bDelete )
      delete m_stree;
#endif
    m_stree = 0;
  }
  if ( 0 != m_surface && m_surface != this )
  {
    ON_Surface* surface = const_cast<ON_Surface*>(m_surface);
    if ( 0 != surface )
      surface->DestroyRuntimeCache( bDelete );
  }
}