aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Meshing/PrimMesher.cs
diff options
context:
space:
mode:
authorDahlia Trimble2009-03-26 03:10:30 +0000
committerDahlia Trimble2009-03-26 03:10:30 +0000
commit3bedb59f50cf53d5b696a0ec7f99f5c4f20fd6fd (patch)
tree80304ca275d1b56dc09e8d62d6353cba28ab1c21 /OpenSim/Region/Physics/Meshing/PrimMesher.cs
parentMake the error messages passed to RegionReady more descriptive (diff)
downloadopensim-SC-3bedb59f50cf53d5b696a0ec7f99f5c4f20fd6fd.zip
opensim-SC-3bedb59f50cf53d5b696a0ec7f99f5c4f20fd6fd.tar.gz
opensim-SC-3bedb59f50cf53d5b696a0ec7f99f5c4f20fd6fd.tar.bz2
opensim-SC-3bedb59f50cf53d5b696a0ec7f99f5c4f20fd6fd.tar.xz
make some arrays static to prevent excessive re-initialization - suggested by jhurliman
Diffstat (limited to 'OpenSim/Region/Physics/Meshing/PrimMesher.cs')
-rw-r--r--OpenSim/Region/Physics/Meshing/PrimMesher.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs
index 962041b..9e43994 100644
--- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs
+++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs
@@ -384,7 +384,7 @@ namespace PrimMesher
384 { 384 {
385 private float iX, iY; // intersection point 385 private float iX, iY; // intersection point
386 386
387 private Angle[] angles3 = 387 private static Angle[] angles3 =
388 { 388 {
389 new Angle(0.0f, 1.0f, 0.0f), 389 new Angle(0.0f, 1.0f, 0.0f),
390 new Angle(0.33333333333333333f, -0.5f, 0.86602540378443871f), 390 new Angle(0.33333333333333333f, -0.5f, 0.86602540378443871f),
@@ -392,7 +392,7 @@ namespace PrimMesher
392 new Angle(1.0f, 1.0f, 0.0f) 392 new Angle(1.0f, 1.0f, 0.0f)
393 }; 393 };
394 394
395 private Coord[] normals3 = 395 private static Coord[] normals3 =
396 { 396 {
397 new Coord(0.25f, 0.4330127019f, 0.0f).Normalize(), 397 new Coord(0.25f, 0.4330127019f, 0.0f).Normalize(),
398 new Coord(-0.5f, 0.0f, 0.0f).Normalize(), 398 new Coord(-0.5f, 0.0f, 0.0f).Normalize(),
@@ -400,7 +400,7 @@ namespace PrimMesher
400 new Coord(0.25f, 0.4330127019f, 0.0f).Normalize() 400 new Coord(0.25f, 0.4330127019f, 0.0f).Normalize()
401 }; 401 };
402 402
403 private Angle[] angles4 = 403 private static Angle[] angles4 =
404 { 404 {
405 new Angle(0.0f, 1.0f, 0.0f), 405 new Angle(0.0f, 1.0f, 0.0f),
406 new Angle(0.25f, 0.0f, 1.0f), 406 new Angle(0.25f, 0.0f, 1.0f),
@@ -409,7 +409,7 @@ namespace PrimMesher
409 new Angle(1.0f, 1.0f, 0.0f) 409 new Angle(1.0f, 1.0f, 0.0f)
410 }; 410 };
411 411
412 private Coord[] normals4 = 412 private static Coord[] normals4 =
413 { 413 {
414 new Coord(0.5f, 0.5f, 0.0f).Normalize(), 414 new Coord(0.5f, 0.5f, 0.0f).Normalize(),
415 new Coord(-0.5f, 0.5f, 0.0f).Normalize(), 415 new Coord(-0.5f, 0.5f, 0.0f).Normalize(),
@@ -418,7 +418,7 @@ namespace PrimMesher
418 new Coord(0.5f, 0.5f, 0.0f).Normalize() 418 new Coord(0.5f, 0.5f, 0.0f).Normalize()
419 }; 419 };
420 420
421 private Angle[] angles24 = 421 private static Angle[] angles24 =
422 { 422 {
423 new Angle(0.0f, 1.0f, 0.0f), 423 new Angle(0.0f, 1.0f, 0.0f),
424 new Angle(0.041666666666666664f, 0.96592582628906831f, 0.25881904510252074f), 424 new Angle(0.041666666666666664f, 0.96592582628906831f, 0.25881904510252074f),