aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-08-05 10:37:25 +0100
committerUbitUmarov2012-08-05 10:37:25 +0100
commit493309d91a2aaa56d95d3f08806524159bc6e645 (patch)
tree8406133b70e32d8840e4dae5630b17bb163c999b /OpenSim/Region/Physics/UbitMeshing/SculptMap.cs
parent*feature test* ubitode, let convex hull shape type work for prims other (diff)
downloadopensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.zip
opensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.tar.gz
opensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.tar.bz2
opensim-SC_OLD-493309d91a2aaa56d95d3f08806524159bc6e645.tar.xz
ubitmeshing: mask out mirror and invert bits on sculpttype convertion.
Remove some unused
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/SculptMap.cs14
1 files changed, 3 insertions, 11 deletions
diff --git a/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs b/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs
index b3d9cb6..054caf3 100644
--- a/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs
+++ b/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs
@@ -25,14 +25,10 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28// to build without references to System.Drawing, comment this out
29#define SYSTEM_DRAWING
30
31using System; 28using System;
32using System.Collections.Generic; 29using System.Collections.Generic;
33using System.Text; 30using System.Text;
34 31
35#if SYSTEM_DRAWING
36using System.Drawing; 32using System.Drawing;
37using System.Drawing.Imaging; 33using System.Drawing.Imaging;
38 34
@@ -140,7 +136,6 @@ namespace PrimMesher
140 int rowNdx, colNdx; 136 int rowNdx, colNdx;
141 int smNdx = 0; 137 int smNdx = 0;
142 138
143
144 for (rowNdx = 0; rowNdx < numRows; rowNdx++) 139 for (rowNdx = 0; rowNdx < numRows; rowNdx++)
145 { 140 {
146 List<Coord> row = new List<Coord>(numCols); 141 List<Coord> row = new List<Coord>(numCols);
@@ -163,11 +158,11 @@ namespace PrimMesher
163 { 158 {
164 159
165 Bitmap scaledImage = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb); 160 Bitmap scaledImage = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb);
166 161
167 Color c; 162 Color c;
168 float xscale = srcImage.Width / destWidth; 163 float xscale = srcImage.Width / destWidth;
169 float yscale = srcImage.Height / destHeight; 164 float yscale = srcImage.Height / destHeight;
170 165
171 float sy = 0.5f; 166 float sy = 0.5f;
172 for (int y = 0; y < destHeight; y++) 167 for (int y = 0; y < destHeight; y++)
173 { 168 {
@@ -190,8 +185,5 @@ namespace PrimMesher
190 srcImage.Dispose(); 185 srcImage.Dispose();
191 return scaledImage; 186 return scaledImage;
192 } 187 }
193
194 }
195
196 } 188 }
197#endif 189} \ No newline at end of file