mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
remove hidden faces inside prim meshes to improve memory use and startup time
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user