From 8ae3df22a2b1d235d4ffb04091656b5d16c50e68 Mon Sep 17 00:00:00 2001
From: dahlia
Date: Wed, 11 Nov 2009 11:10:42 -0800
Subject: clean up some cruft

---
 OpenSim/Region/Physics/Meshing/SculptMesh.cs | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

diff --git a/OpenSim/Region/Physics/Meshing/SculptMesh.cs b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
index a8f9ae5..4dc6e2e 100644
--- a/OpenSim/Region/Physics/Meshing/SculptMesh.cs
+++ b/OpenSim/Region/Physics/Meshing/SculptMesh.cs
@@ -52,6 +52,7 @@ namespace PrimMesher
 
         public enum SculptType { sphere = 1, torus = 2, plane = 3, cylinder = 4 };
 
+#if SYSTEM_DRAWING
         // private Bitmap ScaleImage(Bitmap srcImage, float scale)
         // {
         //     int sourceWidth = srcImage.Width;
@@ -89,7 +90,7 @@ namespace PrimMesher
         //     return scaledImage;
         // }
 
-#if SYSTEM_DRAWING
+
         public SculptMesh SculptMeshFromFile(string fileName, SculptType sculptType, int lod, bool viewerMode)
         {
             Bitmap bitmap = (Bitmap)Bitmap.FromFile(fileName);
@@ -320,20 +321,9 @@ namespace PrimMesher
                 if (sculptType == SculptType.plane)
                     invert = !invert;
 
-            //float sourceScaleFactor = (float)(lod) / (float)Math.Sqrt(sculptBitmap.Width * sculptBitmap.Height);
-
-            //int scale = (int)(1.0f / sourceScaleFactor);
-            //if (scale < 1) scale = 1;
-
-            //List<List<Coord>> rows = bitmap2Coords(sculptBitmap, scale, mirror);
-
             viewerFaces = new List<ViewerFace>();
 
-            //int width = sculptBitmap.Width / scale;
-            // int height = sculptBitmap.Height / scale;
-
             int width = rows[0].Count;
-//            int height = rows.Count;
 
             int p1, p2, p3, p4;
 
-- 
cgit v1.1