diff options
author | Dahlia Trimble | 2008-06-30 02:08:27 +0000 |
---|---|---|
committer | Dahlia Trimble | 2008-06-30 02:08:27 +0000 |
commit | a944ef4947ee4a8999347cd685786786e3774385 (patch) | |
tree | f2e544ccf8e3a98d8098aa5d4abe98c1fa55de67 /OpenSim | |
parent | * Current XML Schema for SceneObjectPart (diff) | |
download | opensim-SC_OLD-a944ef4947ee4a8999347cd685786786e3774385.zip opensim-SC_OLD-a944ef4947ee4a8999347cd685786786e3774385.tar.gz opensim-SC_OLD-a944ef4947ee4a8999347cd685786786e3774385.tar.bz2 opensim-SC_OLD-a944ef4947ee4a8999347cd685786786e3774385.tar.xz |
Corrects meshmerizer profile cut angle orientation for tube type prims
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 161f4e1..b770d68 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -1580,6 +1580,13 @@ namespace OpenSim.Region.Physics.Meshing | |||
1580 | Console.WriteLine("Sphere dimple: fProfileBeginAngle: " + fProfileBeginAngle.ToString() + " fProfileEndAngle: " + fProfileEndAngle.ToString()); | 1580 | Console.WriteLine("Sphere dimple: fProfileBeginAngle: " + fProfileBeginAngle.ToString() + " fProfileEndAngle: " + fProfileEndAngle.ToString()); |
1581 | #endif | 1581 | #endif |
1582 | } | 1582 | } |
1583 | else if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.Square) | ||
1584 | { // tube cut is offset 45 degrees from other prim types | ||
1585 | fProfileBeginAngle += 45.0f; | ||
1586 | fProfileEndAngle += 45.0f; | ||
1587 | if (fProfileBeginAngle < fProfileEndAngle) | ||
1588 | fProfileEndAngle -= 360.0; | ||
1589 | } | ||
1583 | 1590 | ||
1584 | // Note, that we don't want to cut out a triangle, even if this is a | 1591 | // Note, that we don't want to cut out a triangle, even if this is a |
1585 | // good approximation for small cuts. Indeed we want to cut out an arc | 1592 | // good approximation for small cuts. Indeed we want to cut out an arc |