From 56c6bdcb2684bf22779aa35386e8e1014ffb95ba Mon Sep 17 00:00:00 2001
From: Dahlia Trimble
Date: Mon, 7 Jul 2008 05:42:37 +0000
Subject: Addresses more problem box cut angles

---
 OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'OpenSim/Region')

diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index 95526f6..aabfdaf 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -435,12 +435,6 @@ namespace OpenSim.Region.Physics.Meshing
             // Int16 twistTop = primShape.PathTwistBegin;
             // Int16 twistBot = primShape.PathTwist;
 
-            // tweak problem cut angles
-            if (profileBegin > 23 && profileBegin % 50 == 0) profileBegin -= 23;
-            if (profileEnd > 23 && profileEnd % 50 == 0) profileEnd += 23;
-
-
-
 #if SPAM
             reportPrimParams("[BOX] " + primName, primShape);
 #endif
@@ -487,6 +481,10 @@ namespace OpenSim.Region.Physics.Meshing
                     fProfileBeginAngle += 5.0f;
                 if ((fProfileEndAngle + 45.0f) % 90.0f == 0.0f)
                     fProfileEndAngle -= 5.0f;
+                if (fProfileBeginAngle % 90.0f == 0.0f)
+                    fProfileBeginAngle += 1.0f;
+                if (fProfileEndAngle % 90.0f == 0.0f)
+                    fProfileEndAngle -= 1.0f;
 
                 if (fProfileBeginAngle < fProfileEndAngle)
                     fProfileEndAngle -= 360.0;
-- 
cgit v1.1