diff options
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index c9be614..72c5d7f 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -475,9 +475,20 @@ namespace OpenSim.Region.Physics.Meshing | |||
475 | fProfileBeginAngle -= (90.0 + 45.0); // for some reasons, the SL client counts from the corner -X/-Y | 475 | fProfileBeginAngle -= (90.0 + 45.0); // for some reasons, the SL client counts from the corner -X/-Y |
476 | double fProfileEndAngle = 360.0 - profileEnd/50000.0*360.0; // Pathend comes as complement to 1.0 | 476 | double fProfileEndAngle = 360.0 - profileEnd/50000.0*360.0; // Pathend comes as complement to 1.0 |
477 | fProfileEndAngle -= (90.0 + 45.0); | 477 | fProfileEndAngle -= (90.0 + 45.0); |
478 | |||
479 | // avoid some problem angles until the hull subtraction routine is fixed | ||
480 | if ((fProfileBeginAngle + 45.0f) % 90.0f == 0.0f) | ||
481 | fProfileBeginAngle += 5.0f; | ||
482 | if ((fProfileEndAngle + 45.0f) % 90.0f == 0.0f) | ||
483 | fProfileEndAngle -= 5.0f; | ||
484 | |||
478 | if (fProfileBeginAngle < fProfileEndAngle) | 485 | if (fProfileBeginAngle < fProfileEndAngle) |
479 | fProfileEndAngle -= 360.0; | 486 | fProfileEndAngle -= 360.0; |
480 | 487 | ||
488 | #if SPAM | ||
489 | Console.WriteLine("Meshmerizer: fProfileBeginAngle: " + fProfileBeginAngle.ToString() + " fProfileEndAngle: " + fProfileEndAngle.ToString()); | ||
490 | #endif | ||
491 | |||
481 | // Note, that we don't want to cut out a triangle, even if this is a | 492 | // Note, that we don't want to cut out a triangle, even if this is a |
482 | // good approximation for small cuts. Indeed we want to cut out an arc | 493 | // good approximation for small cuts. Indeed we want to cut out an arc |
483 | // and we approximate this arc by a polygon chain | 494 | // and we approximate this arc by a polygon chain |