public ConstCastHolder(CommonObject obj, object old_parent)
 {
     m_oldparent = old_parent;
 }
 /// <summary>
 /// Intentionally internal so only the IsCorrupt test can throw this exception.
 /// </summary>
 /// <param name="ptrGeometry">pointer to base geometry (ON_Object*)</param>
 /// <param name="obj">Corrupt geometry .NET class</param>
 internal CorruptGeometryException(IntPtr ptrGeometry, CommonObject obj) :
     base("Corrupt brep or mesh detected. Crash prevented.")
 {
     Pointer      = ptrGeometry;
     CommonObject = obj;
 }