From b16abc8166c29585cb76cc55c3bdd76e5833cb4f Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 5 Jan 2017 19:07:37 +0000 Subject: Massive tab and trailing space cleanup --- .../Linden/Caps/BunchOfCaps/MeshCost.cs | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs index fb22694..eb1ab45 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/MeshCost.cs @@ -51,7 +51,7 @@ namespace OpenSim.Region.ClientStack.Linden { public struct ModelPrimLimits { - + } public class ModelCost @@ -82,9 +82,9 @@ namespace OpenSim.Region.ClientStack.Linden const float lowestSizeWth = 2f; // 3x // favor potencially physical optimized meshs versus automatic decomposition const float physMeshSizeWth = 6f; // counts 7x - const float physHullSizeWth = 8f; // counts 9x + const float physHullSizeWth = 8f; // counts 9x - // stream cost area factors + // stream cost area factors // more or less like SL const float highLodFactor = 17.36f; const float midLodFactor = 277.78f; @@ -108,7 +108,7 @@ namespace OpenSim.Region.ClientStack.Linden PrimScaleMin = scene.m_minNonphys; NonPhysicalPrimScaleMax = scene.m_maxNonphys; PhysicalPrimScaleMax = scene.m_maxPhys; - ObjectLinkedPartsMax = scene.m_linksetCapacity; + ObjectLinkedPartsMax = scene.m_linksetCapacity; } public void Econfig(IConfig EconomyConfig) @@ -121,7 +121,7 @@ namespace OpenSim.Region.ClientStack.Linden bytecost = EconomyConfig.GetFloat("ModelMeshByteCost", bytecost); } - // storage for a single mesh asset cost parameters + // storage for a single mesh asset cost parameters private class ameshCostParam { // LOD sizes for size dependent streaming cost @@ -140,7 +140,7 @@ namespace OpenSim.Region.ClientStack.Linden // resources input LLSD request // basicCost input region assets upload cost // totalcost returns model total upload fee - // meshcostdata returns detailed costs for viewer + // meshcostdata returns detailed costs for viewer // avatarSkeleton if mesh includes a avatar skeleton // useAvatarCollider if we should use physics mesh for avatar public bool MeshModelCost(LLSDAssetResource resources, int basicCost, out int totalcost, @@ -150,7 +150,7 @@ namespace OpenSim.Region.ClientStack.Linden error = string.Empty; bool avatarSkeleton = false; - + if (resources == null || resources.instance_list == null || resources.instance_list.Array.Count == 0) @@ -203,7 +203,7 @@ namespace OpenSim.Region.ClientStack.Linden if (resources.mesh_list != null && resources.mesh_list.Array.Count > 0) { numberMeshs = resources.mesh_list.Array.Count; - + for (int i = 0; i < numberMeshs; i++) { ameshCostParam curCost = new ameshCostParam(); @@ -230,7 +230,7 @@ namespace OpenSim.Region.ClientStack.Linden } // instances (prims) cost - + int mesh; int skipedSmall = 0; @@ -331,7 +331,7 @@ namespace OpenSim.Region.ClientStack.Linden // breakdown prices // don't seem to be in use so removed code for now - + return true; } @@ -404,7 +404,7 @@ namespace OpenSim.Region.ClientStack.Linden int sksize = tmpmap["size"].AsInteger(); if(sksize > 0) skeleton = true; - } + } } if (map.ContainsKey("physics_convex")) @@ -429,7 +429,7 @@ namespace OpenSim.Region.ClientStack.Linden } submesh_offset = -1; - + // only look for LOD meshs sizes if (map.ContainsKey("high_lod")) @@ -518,7 +518,7 @@ namespace OpenSim.Region.ClientStack.Linden cost.physicsCost = 0.04f * phys_hullsvertices; float sfee; - + sfee = data.Length; // start with total compressed data size // penalize lod meshs that should be more builder optimized @@ -535,7 +535,7 @@ namespace OpenSim.Region.ClientStack.Linden // bytes to money sfee *= bytecost; - + cost.costFee = sfee; return true; } @@ -675,7 +675,7 @@ namespace OpenSim.Region.ClientStack.Linden return true; } - // returns streaming cost from on mesh LODs sizes in curCost and square of prim size length + // returns streaming cost from on mesh LODs sizes in curCost and square of prim size length private float streamingCost(ameshCostParam curCost, float sqdiam) { // compute efective areas -- cgit v1.1