mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Added some exceptions for bad profile cut parameters
This commit is contained in:
@@ -105,6 +105,12 @@ namespace OpenSim.Region.Physics.Meshing
|
||||
{
|
||||
angles = new List<Angle>();
|
||||
double twoPi = System.Math.PI * 2.0;
|
||||
|
||||
if (sides < 1)
|
||||
throw new Exception("number of sides not greater than zero");
|
||||
if (stopAngle <= startAngle)
|
||||
throw new Exception("stopAngle not greater than startAngle");
|
||||
|
||||
double stepSize = twoPi / sides;
|
||||
|
||||
int startStep = (int) (startAngle / stepSize);
|
||||
|
||||
Reference in New Issue
Block a user