aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Meshing/PrimMesher.cs
diff options
context:
space:
mode:
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 }