aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs')
-rw-r--r--OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs18
1 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs b/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
index 51d067a..10facf2 100644
--- a/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
+++ b/OpenSim/Region/PhysicsModules/ubOdeMeshing/PrimMesher.cs
@@ -522,7 +522,7 @@ namespace PrimMesher
522 public Profile(int sides, float profileStart, float profileEnd, float hollow, int hollowSides, bool hasProfileCut, bool createFaces) 522 public Profile(int sides, float profileStart, float profileEnd, float hollow, int hollowSides, bool hasProfileCut, bool createFaces)
523 { 523 {
524 const float halfSqr2 = 0.7071067811866f; 524 const float halfSqr2 = 0.7071067811866f;
525 525
526 coords = new List<Coord>(); 526 coords = new List<Coord>();
527 faces = new List<Face>(); 527 faces = new List<Face>();
528 528
@@ -769,7 +769,7 @@ namespace PrimMesher
769 } 769 }
770 } 770 }
771 } 771 }
772 772
773 } 773 }
774 774
775 else if (createFaces) 775 else if (createFaces)
@@ -865,7 +865,7 @@ namespace PrimMesher
865 int i; 865 int i;
866 int numVerts = coords.Count; 866 int numVerts = coords.Count;
867 Coord vert; 867 Coord vert;
868 868
869 for (i = 0; i < numVerts; i++) 869 for (i = 0; i < numVerts; i++)
870 { 870 {
871 vert = coords[i]; 871 vert = coords[i];
@@ -1226,7 +1226,7 @@ namespace PrimMesher
1226 s += "\nrevolutions..........: " + this.revolutions.ToString(); 1226 s += "\nrevolutions..........: " + this.revolutions.ToString();
1227 s += "\nstepsPerRevolution...: " + this.stepsPerRevolution.ToString(); 1227 s += "\nstepsPerRevolution...: " + this.stepsPerRevolution.ToString();
1228 s += "\nhasProfileCut........: " + this.hasProfileCut.ToString(); 1228 s += "\nhasProfileCut........: " + this.hasProfileCut.ToString();
1229 s += "\nhasHollow............: " + this.hasHollow.ToString(); 1229 s += "\nhasHollow............: " + this.hasHollow.ToString();
1230 1230
1231 return s; 1231 return s;
1232 } 1232 }
@@ -1324,7 +1324,7 @@ namespace PrimMesher
1324 needEndFaces = true; 1324 needEndFaces = true;
1325 } 1325 }
1326 else needEndFaces = true; 1326 else needEndFaces = true;
1327 1327
1328 if (pathType == PathType.Circular) 1328 if (pathType == PathType.Circular)
1329 { 1329 {
1330 if (sides == 3) 1330 if (sides == 3)
@@ -1377,7 +1377,7 @@ namespace PrimMesher
1377 hollow *= 1.414f; 1377 hollow *= 1.414f;
1378 } 1378 }
1379 1379
1380 Profile profile = new Profile(sides, profileStart, profileEnd, hollow, hollowSides, 1380 Profile profile = new Profile(sides, profileStart, profileEnd, hollow, hollowSides,
1381 HasProfileCut,true); 1381 HasProfileCut,true);
1382 errorMessage = profile.errorMessage; 1382 errorMessage = profile.errorMessage;
1383 1383
@@ -1407,7 +1407,7 @@ namespace PrimMesher
1407 path.stepsPerRevolution = stepsPerRevolution; 1407 path.stepsPerRevolution = stepsPerRevolution;
1408 1408
1409 path.Create(pathType, steps); 1409 path.Create(pathType, steps);
1410 1410
1411 int lastNode = path.pathNodes.Count - 1; 1411 int lastNode = path.pathNodes.Count - 1;
1412 1412
1413 for (int nodeIndex = 0; nodeIndex < path.pathNodes.Count; nodeIndex++) 1413 for (int nodeIndex = 0; nodeIndex < path.pathNodes.Count; nodeIndex++)
@@ -1537,7 +1537,7 @@ namespace PrimMesher
1537 /// DEPRICATED - use Extrude(PathType.Linear) instead 1537 /// DEPRICATED - use Extrude(PathType.Linear) instead
1538 /// Extrudes a profile along a straight line path. Used for prim types box, cylinder, and prism. 1538 /// Extrudes a profile along a straight line path. Used for prim types box, cylinder, and prism.
1539 /// </summary> 1539 /// </summary>
1540 /// 1540 ///
1541 public void ExtrudeLinear() 1541 public void ExtrudeLinear()
1542 { 1542 {
1543 Extrude(PathType.Linear); 1543 Extrude(PathType.Linear);
@@ -1548,7 +1548,7 @@ namespace PrimMesher
1548 /// DEPRICATED - use Extrude(PathType.Circular) instead 1548 /// DEPRICATED - use Extrude(PathType.Circular) instead
1549 /// Extrude a profile into a circular path prim mesh. Used for prim types torus, tube, and ring. 1549 /// Extrude a profile into a circular path prim mesh. Used for prim types torus, tube, and ring.
1550 /// </summary> 1550 /// </summary>
1551 /// 1551 ///
1552 public void ExtrudeCircular() 1552 public void ExtrudeCircular()
1553 { 1553 {
1554 Extrude(PathType.Circular); 1554 Extrude(PathType.Circular);