aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index b506c8f..f770476 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -838,8 +838,17 @@ namespace OpenSim.Region.Physics.Meshing
838 //fProfileBeginAngle -= (90.0 + 45.0); // for some reasons, the SL client counts from the corner -X/-Y 838 //fProfileBeginAngle -= (90.0 + 45.0); // for some reasons, the SL client counts from the corner -X/-Y
839 double fProfileEndAngle = 360.0 - profileEnd / 50000.0 * 360.0; // Pathend comes as complement to 1.0 839 double fProfileEndAngle = 360.0 - profileEnd / 50000.0 * 360.0; // Pathend comes as complement to 1.0
840 //fProfileEndAngle -= (90.0 + 45.0); 840 //fProfileEndAngle -= (90.0 + 45.0);
841#if SPAM
842 Console.WriteLine("Extruder: Cylinder fProfileBeginAngle: " + fProfileBeginAngle.ToString() + " fProfileEndAngle: " + fProfileEndAngle.ToString());
843#endif
844 if (fProfileBeginAngle > 270.0f && fProfileBeginAngle < 271.8f) // a problem angle for the hull subtract routine :(
845 fProfileBeginAngle = 271.8f; // workaround - use the smaller slice
846
841 if (fProfileBeginAngle < fProfileEndAngle) 847 if (fProfileBeginAngle < fProfileEndAngle)
842 fProfileEndAngle -= 360.0; 848 fProfileEndAngle -= 360.0;
849#if SPAM
850 Console.WriteLine("Extruder: Cylinder fProfileBeginAngle: " + fProfileBeginAngle.ToString() + " fProfileEndAngle: " + fProfileEndAngle.ToString());
851#endif
843 852
844 // Note, that we don't want to cut out a triangle, even if this is a 853 // Note, that we don't want to cut out a triangle, even if this is a
845 // good approximation for small cuts. Indeed we want to cut out an arc 854 // good approximation for small cuts. Indeed we want to cut out an arc