From febb781779e81fbaac669ecbcf47ca19481776a2 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Fri, 12 Sep 2008 19:42:26 +0000 Subject: remove hidden faces inside prim meshes to improve memory use and startup time --- OpenSim/Region/Physics/Meshing/PrimMesher.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Physics/Meshing') diff --git a/OpenSim/Region/Physics/Meshing/PrimMesher.cs b/OpenSim/Region/Physics/Meshing/PrimMesher.cs index 63f2b10..c495d71 100644 --- a/OpenSim/Region/Physics/Meshing/PrimMesher.cs +++ b/OpenSim/Region/Physics/Meshing/PrimMesher.cs @@ -821,7 +821,9 @@ angles24 = [ newLayer.AddValue2Faces(coordsLen); this.coords.AddRange(newLayer.coords); - this.faces.AddRange(newLayer.faces); + + if (percentOfPath <= this.pathCutBegin || percentOfPath >= this.pathCutEnd) + this.faces.AddRange(newLayer.faces); // fill faces between layers @@ -1009,7 +1011,9 @@ angles24 = [ newLayer.AddValue2Faces(coordsLen); this.coords.AddRange(newLayer.coords); - this.faces.AddRange(newLayer.faces); + + if (angle <= startAngle || angle >= endAngle) + this.faces.AddRange(newLayer.faces); // fill faces between layers -- cgit v1.1