aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDahlia Trimble2008-08-27 23:43:53 +0000
committerDahlia Trimble2008-08-27 23:43:53 +0000
commit1a83384f906199015306698f15d44a5212207cf7 (patch)
treed9c722228937e8c56cc12b404eafa5d3ab3da886
parentODEPlugin now frees source mesh data after conversion to pinned lists to save... (diff)
downloadopensim-SC_OLD-1a83384f906199015306698f15d44a5212207cf7.zip
opensim-SC_OLD-1a83384f906199015306698f15d44a5212207cf7.tar.gz
opensim-SC_OLD-1a83384f906199015306698f15d44a5212207cf7.tar.bz2
opensim-SC_OLD-1a83384f906199015306698f15d44a5212207cf7.tar.xz
re-enable new PrimMesher module for mesh creation for standard (non-flexy) prims.
Diffstat (limited to '')
-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 }