aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Meshing/PrimMesher.cs
diff options
context:
space:
mode:
authorCharles Krinke2009-02-22 20:52:55 +0000
committerCharles Krinke2009-02-22 20:52:55 +0000
commit8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49 (patch)
tree96a24a49de82056060dd9b7bab0cb209d5f1a129 /OpenSim/Region/Physics/Meshing/PrimMesher.cs
parentAllow delivery of object messages gridwide (diff)
downloadopensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.zip
opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.gz
opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.bz2
opensim-SC-8f55b9d735fbc975ce7a4b54e972c17ffbfb1f49.tar.xz
Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:
* Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
Diffstat (limited to 'OpenSim/Region/Physics/Meshing/PrimMesher.cs')
-rw-r--r--OpenSim/Region/Physics/Meshing/PrimMesher.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs
index c28577d..86c9c08 100644
--- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs
+++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs
@@ -29,6 +29,8 @@ using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Text; 30using System.Text;
31using System.IO; 31using System.IO;
32using log4net;
33using System.Reflection;
32 34
33namespace PrimMesher 35namespace PrimMesher
34{ 36{
@@ -576,6 +578,7 @@ namespace PrimMesher
576 /// </summary> 578 /// </summary>
577 internal class Profile 579 internal class Profile
578 { 580 {
581 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
579 private const float twoPi = 2.0f * (float)Math.PI; 582 private const float twoPi = 2.0f * (float)Math.PI;
580 583
581 internal List<Coord> coords; 584 internal List<Coord> coords;
@@ -643,8 +646,8 @@ namespace PrimMesher
643 try { angles.makeAngles(sides, startAngle, stopAngle); } 646 try { angles.makeAngles(sides, startAngle, stopAngle); }
644 catch (Exception ex) 647 catch (Exception ex)
645 { 648 {
646 Console.WriteLine("makeAngles failed: Exception: " + ex.ToString()); 649 m_log.Error("makeAngles failed: Exception: " + ex.ToString());
647 Console.WriteLine("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString()); 650 m_log.Error("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString());
648 return; 651 return;
649 } 652 }
650 653
@@ -663,8 +666,8 @@ namespace PrimMesher
663 try { hollowAngles.makeAngles(hollowSides, startAngle, stopAngle); } 666 try { hollowAngles.makeAngles(hollowSides, startAngle, stopAngle); }
664 catch (Exception ex) 667 catch (Exception ex)
665 { 668 {
666 Console.WriteLine("makeAngles failed: Exception: " + ex.ToString()); 669 m_log.Error("makeAngles failed: Exception: " + ex.ToString());
667 Console.WriteLine("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString()); 670 m_log.Error("sides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString());
668 return; 671 return;
669 } 672 }
670 } 673 }