From a8cfbbe963529728acbab4d9936cb89af380d1ac Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 20 Feb 2008 18:38:20 +0000 Subject: Minor cleanup. --- OpenSim/Region/Physics/Meshing/SimpleHull.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/Physics/Meshing/SimpleHull.cs') diff --git a/OpenSim/Region/Physics/Meshing/SimpleHull.cs b/OpenSim/Region/Physics/Meshing/SimpleHull.cs index 91df98f..58b9a0e 100644 --- a/OpenSim/Region/Physics/Meshing/SimpleHull.cs +++ b/OpenSim/Region/Physics/Meshing/SimpleHull.cs @@ -42,7 +42,7 @@ namespace OpenSim.Region.Physics.Meshing // is defined by the hull lies inside or outside the simplex chain public class SimpleHull { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private List vertices = new List(); private List holeVertices = new List(); // Only used, when the hull is hollow @@ -228,8 +228,8 @@ namespace OpenSim.Region.Physics.Meshing distToV1 = distTemp; bestIntersectingSimplex = sTest; } - } // end if vTemp - } // end foreach + } + } Intersection = bestIntersection; if (bestIntersectingSimplex != null) @@ -308,7 +308,6 @@ namespace OpenSim.Region.Physics.Meshing //m_log.Debug("State after intersection detection for the base hull"); //m_log.DebugFormat("The otherHull is:\n{1}", 0, otherHullClone.ToString()); - bool otherIsInBase = baseHullClone.containsPointsFrom(otherHullClone); if (!intersects && otherIsInBase) { @@ -317,7 +316,6 @@ namespace OpenSim.Region.Physics.Meshing return baseHullClone; } - SimpleHull result = new SimpleHull(); // Find a good starting Simplex from baseHull @@ -394,4 +392,4 @@ namespace OpenSim.Region.Physics.Meshing return result; } } -} \ No newline at end of file +} -- cgit v1.1