aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDahlia Trimble2008-07-06 02:04:24 +0000
committerDahlia Trimble2008-07-06 02:04:24 +0000
commitfd69251bcda92ceec91eb6fff9eaae9f6301035b (patch)
treef881d6af43272ad6330cfc58f4378de360bc2cd5
parentAdd implementation of llGetTimeOfDay() (diff)
downloadopensim-SC-fd69251bcda92ceec91eb6fff9eaae9f6301035b.zip
opensim-SC-fd69251bcda92ceec91eb6fff9eaae9f6301035b.tar.gz
opensim-SC-fd69251bcda92ceec91eb6fff9eaae9f6301035b.tar.bz2
opensim-SC-fd69251bcda92ceec91eb6fff9eaae9f6301035b.tar.xz
alters a problem path cut angle for the cylinder prim profile
-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