aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/Manager/IMesher.cs
diff options
context:
space:
mode:
authorRobert Adams2011-08-26 21:26:26 -0700
committerBlueWall2011-08-28 16:49:25 -0400
commit80a2b81d52de3c053ce00f1f54751c7a931dad23 (patch)
treea82c2301e12ac15cc0fd0b528f3bae0e483aa441 /OpenSim/Region/Physics/Manager/IMesher.cs
parentRelated to #4689 - Adding missing null check for SceneObjectPart (diff)
downloadopensim-SC_OLD-80a2b81d52de3c053ce00f1f54751c7a931dad23.zip
opensim-SC_OLD-80a2b81d52de3c053ce00f1f54751c7a931dad23.tar.gz
opensim-SC_OLD-80a2b81d52de3c053ce00f1f54751c7a931dad23.tar.bz2
opensim-SC_OLD-80a2b81d52de3c053ce00f1f54751c7a931dad23.tar.xz
Add level of detail specification to optionally reduce the number of vertices in generated prim meshes
Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
Diffstat (limited to 'OpenSim/Region/Physics/Manager/IMesher.cs')
-rw-r--r--OpenSim/Region/Physics/Manager/IMesher.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/IMesher.cs b/OpenSim/Region/Physics/Manager/IMesher.cs
index 1181b8d..3a9ca1b 100644
--- a/OpenSim/Region/Physics/Manager/IMesher.cs
+++ b/OpenSim/Region/Physics/Manager/IMesher.cs
@@ -38,6 +38,17 @@ namespace OpenSim.Region.Physics.Manager
38 IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical); 38 IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical);
39 } 39 }
40 40
41 // Values for level of detail to be passed to the mesher.
42 // Values origionally chosen for the LOD of sculpties (the sqrt(width*heigth) of sculpt texture)
43 // Lower level of detail reduces the number of vertices used to represent the meshed shape.
44 public enum LevelOfDetail
45 {
46 High = 32,
47 Medium = 16,
48 Low = 8,
49 VeryLow = 4
50 }
51
41 public interface IVertex 52 public interface IVertex
42 { 53 {
43 } 54 }