diff options
author | Dahlia Trimble | 2008-07-02 17:08:52 +0000 |
---|---|---|
committer | Dahlia Trimble | 2008-07-02 17:08:52 +0000 |
commit | 13d6615263e34c95fd1e4944fefc74dad5912a56 (patch) | |
tree | 21dfa0864a0fff9c305fec85d2e8b8a0d634af05 /OpenSim/Region/Physics/Meshing/Extruder.cs | |
parent | * elminate now pointless inv type fields from OpenSim library xml (diff) | |
download | opensim-SC_OLD-13d6615263e34c95fd1e4944fefc74dad5912a56.zip opensim-SC_OLD-13d6615263e34c95fd1e4944fefc74dad5912a56.tar.gz opensim-SC_OLD-13d6615263e34c95fd1e4944fefc74dad5912a56.tar.bz2 opensim-SC_OLD-13d6615263e34c95fd1e4944fefc74dad5912a56.tar.xz |
Adds experimental Meshmerizer support for "prim torture" effects of sphere dimple on prim types box, cylinder, and prism
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/Meshing/Extruder.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Extruder.cs b/OpenSim/Region/Physics/Meshing/Extruder.cs index ac8d81c..77bd9a4 100644 --- a/OpenSim/Region/Physics/Meshing/Extruder.cs +++ b/OpenSim/Region/Physics/Meshing/Extruder.cs | |||
@@ -303,7 +303,9 @@ namespace OpenSim.Region.Physics.Meshing | |||
303 | System.Console.WriteLine("Extruder: PathScaleX: " + pathScaleX.ToString() + " pathScaleY: " + pathScaleY.ToString()); | 303 | System.Console.WriteLine("Extruder: PathScaleX: " + pathScaleX.ToString() + " pathScaleY: " + pathScaleY.ToString()); |
304 | #endif | 304 | #endif |
305 | 305 | ||
306 | float percentOfPath = 0.0f; | 306 | //float percentOfPath = 0.0f; |
307 | float percentOfPath = (float)pathBegin * 2.0e-5f; | ||
308 | zOffset += percentOfPath; | ||
307 | bool done = false; | 309 | bool done = false; |
308 | do // loop through the length of the path and add the layers | 310 | do // loop through the length of the path and add the layers |
309 | { | 311 | { |
@@ -409,6 +411,9 @@ namespace OpenSim.Region.Physics.Meshing | |||
409 | xOffset += xOffsetStepIncrement; | 411 | xOffset += xOffsetStepIncrement; |
410 | yOffset += yOffsetStepIncrement; | 412 | yOffset += yOffsetStepIncrement; |
411 | zOffset += stepSize; | 413 | zOffset += stepSize; |
414 | |||
415 | if (percentOfPath > 1.0f - (float)pathEnd * 2.0e-5f) | ||
416 | done = true; | ||
412 | } | 417 | } |
413 | else done = true; | 418 | else done = true; |
414 | 419 | ||