OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
/// <summary>
/// Remove the existing geom from this prim.
/// </summary>
/// <param name="m_targetSpace"></param>
/// <param name="mesh">If null, then a mesh is used that is based on the profile shape data.</param>
/// <returns>true if the geom was successfully removed, false if it was already gone or the remove failed.</returns>
Remove the existing geom from this prim.
Remove the existing geom from this prim .
internal bool RemoveGeom()
        {
            if (prim_geom != IntPtr.Zero)
            {
                try
                {
                    _parent_scene.geom_name_map.Remove(prim_geom);
                    _parent_scene.actor_name_map.Remove(prim_geom);
                    d.GeomDestroy(prim_geom);
                    m_expectedCollisionContacts = 0;
                    prim_geom = IntPtr.Zero;
                }
                catch (System.AccessViolationException)
                {
                    prim_geom = IntPtr.Zero;
                    m_expectedCollisionContacts = 0;
                    m_log.ErrorFormat("[PHYSICS]: PrimGeom dead for {0}", Name);
                    return false;
                }
                return true;
            }
            else
            {
                m_log.WarnFormat(
                    "[ODE PRIM]: Called RemoveGeom() on {0} {1} where geometry was already null.", Name, LocalID);
                return false;
            }
        }
internal bool RemoveGeom ( ) { if ( prim_geom != IntPtr . Zero ) { try { _parent_scene . geom_name_map . Remove ( prim_geom ) ; _parent_scene . actor_name_map . Remove ( prim_geom ) ; d . GeomDestroy ( prim_geom ) ; m_expectedCollisionContacts = 0 ; prim_geom = IntPtr . Zero ; } catch ( System . AccessViolationException ) { prim_geom = IntPtr . Zero ; m_expectedCollisionContacts = 0 ; m_log . ErrorFormat ( " " , Name ) ; return false ; } return true ; } else { m_log . WarnFormat ( " " , Name , LocalID ) ; return false ; } }
Remove the existing geom from this prim.
Remove the existing geom from this prim .
true if the geom was successfully removed, false if it was already gone or the remove failed.
true if the geom was successfully removed false if it was already gone or the remove failed .
m_targetSpace
None
mesh
If null, then a mesh is used that is based on the profile shape data.
If null then a mesh is used that is based on the profile shape data .