aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorDahlia Trimble2008-09-12 19:42:26 +0000
committerDahlia Trimble2008-09-12 19:42:26 +0000
commitfebb781779e81fbaac669ecbcf47ca19481776a2 (patch)
treee8db9d2ef954e0bc4265f6bd881e51b1375e37ac /OpenSim
parentbecause UUID supports equality, we can do a straight equals instead of (diff)
downloadopensim-SC_OLD-febb781779e81fbaac669ecbcf47ca19481776a2.zip
opensim-SC_OLD-febb781779e81fbaac669ecbcf47ca19481776a2.tar.gz
opensim-SC_OLD-febb781779e81fbaac669ecbcf47ca19481776a2.tar.bz2
opensim-SC_OLD-febb781779e81fbaac669ecbcf47ca19481776a2.tar.xz
remove hidden faces inside prim meshes to improve memory use and startup time
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Physics/Meshing/PrimMesher.cs8
1 files changed, 6 insertions, 2 deletions
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 = [
821 newLayer.AddValue2Faces(coordsLen); 821 newLayer.AddValue2Faces(coordsLen);
822 822
823 this.coords.AddRange(newLayer.coords); 823 this.coords.AddRange(newLayer.coords);
824 this.faces.AddRange(newLayer.faces); 824
825 if (percentOfPath <= this.pathCutBegin || percentOfPath >= this.pathCutEnd)
826 this.faces.AddRange(newLayer.faces);
825 827
826 // fill faces between layers 828 // fill faces between layers
827 829
@@ -1009,7 +1011,9 @@ angles24 = [
1009 newLayer.AddValue2Faces(coordsLen); 1011 newLayer.AddValue2Faces(coordsLen);
1010 1012
1011 this.coords.AddRange(newLayer.coords); 1013 this.coords.AddRange(newLayer.coords);
1012 this.faces.AddRange(newLayer.faces); 1014
1015 if (angle <= startAngle || angle >= endAngle)
1016 this.faces.AddRange(newLayer.faces);
1013 1017
1014 // fill faces between layers 1018 // fill faces between layers
1015 1019