diff options
Diffstat (limited to 'OpenSim/Region/Physics/Meshing')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/PrimMesher.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs index 1e4efcb..53cc443 100644 --- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs +++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs | |||
@@ -105,6 +105,12 @@ namespace OpenSim.Region.Physics.Meshing | |||
105 | { | 105 | { |
106 | angles = new List<Angle>(); | 106 | angles = new List<Angle>(); |
107 | double twoPi = System.Math.PI * 2.0; | 107 | double twoPi = System.Math.PI * 2.0; |
108 | |||
109 | if (sides < 1) | ||
110 | throw new Exception("number of sides not greater than zero"); | ||
111 | if (stopAngle <= startAngle) | ||
112 | throw new Exception("stopAngle not greater than startAngle"); | ||
113 | |||
108 | double stepSize = twoPi / sides; | 114 | double stepSize = twoPi / sides; |
109 | 115 | ||
110 | int startStep = (int) (startAngle / stepSize); | 116 | int startStep = (int) (startAngle / stepSize); |