aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics')
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs34
1 files changed, 17 insertions, 17 deletions
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index 03c98f0..a66a1b1 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -52,7 +52,7 @@ namespace OpenSim.Region.Physics.Meshing
52 52
53 public class Meshmerizer : IMesher 53 public class Meshmerizer : IMesher
54 { 54 {
55 private bool usePrimMesher = false; 55 private bool usePrimMesher = true;
56 56
57 //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 57 //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
58 58
@@ -1972,25 +1972,25 @@ namespace OpenSim.Region.Physics.Meshing
1972 1972
1973 primMesh.Scale(size.X, size.Y, size.Z); 1973 primMesh.Scale(size.X, size.Y, size.Z);
1974 1974
1975 //int numFaces = primMesh.faces.Count; 1975 int numFaces = primMesh.faces.Count;
1976 //for (int i = 0; i < numFaces; i++) 1976 for (int i = 0; i < numFaces; i++)
1977 //{ 1977 {
1978 // Face f = primMesh.faces[i]; 1978 Face f = primMesh.faces[i];
1979 // Coord vert = primMesh.coords[f.v1]; 1979 Coord vert = primMesh.coords[f.v1];
1980 // Vertex v1 = new Vertex(vert.X, vert.Y, vert.Z); 1980 Vertex v1 = new Vertex(vert.X, vert.Y, vert.Z);
1981 // mesh.vertices.Add(v1); 1981 mesh.vertices.Add(v1);
1982 // vert = primMesh.coords[f.v2]; 1982 vert = primMesh.coords[f.v2];
1983 // Vertex v2 = new Vertex(vert.X, vert.Y, vert.Z); 1983 Vertex v2 = new Vertex(vert.X, vert.Y, vert.Z);
1984 // mesh.vertices.Add(v2); 1984 mesh.vertices.Add(v2);
1985 // vert = primMesh.coords[f.v3]; 1985 vert = primMesh.coords[f.v3];
1986 // Vertex v3 = new Vertex(vert.X, vert.Y, vert.Z); 1986 Vertex v3 = new Vertex(vert.X, vert.Y, vert.Z);
1987 // mesh.vertices.Add(v3); 1987 mesh.vertices.Add(v3);
1988 // mesh.triangles.Add(new Triangle(v1, v2, v3)); 1988 mesh.triangles.Add(new Triangle(v1, v2, v3));
1989 //} 1989 }
1990 1990
1991 //mesh.DumpRaw(baseDir, primName, "Mesh"); 1991 //mesh.DumpRaw(baseDir, primName, "Mesh");
1992 1992
1993 mesh.primMesh = primMesh; 1993 //mesh.primMesh = primMesh;
1994 1994
1995 return mesh; 1995 return mesh;
1996 } 1996 }