diff options
author | UbitUmarov | 2016-08-09 21:46:19 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-09 21:46:19 +0100 |
commit | 6f5f6431a45cad8e23c2251d661691d905fc08f7 (patch) | |
tree | 8d47a09e2fd5bbe0e3a05d286bbef29bda2b628b /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | add a simple prim area estimator (diff) | |
download | opensim-SC_OLD-6f5f6431a45cad8e23c2251d661691d905fc08f7.zip opensim-SC_OLD-6f5f6431a45cad8e23c2251d661691d905fc08f7.tar.gz opensim-SC_OLD-6f5f6431a45cad8e23c2251d661691d905fc08f7.tar.bz2 opensim-SC_OLD-6f5f6431a45cad8e23c2251d661691d905fc08f7.tar.xz |
add a SimpleAngularDistance Updates prioritazition scheme. Results don't look that great so don't use it still.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 90be18f..bc603ae 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -1191,24 +1191,28 @@ namespace OpenSim.Region.Framework.Scenes | |||
1191 | public float maxSimpleArea() | 1191 | public float maxSimpleArea() |
1192 | { | 1192 | { |
1193 | float a,b; | 1193 | float a,b; |
1194 | if(m_shape.Scale.X > m_shape.Scale.Y) | 1194 | float sx = m_shape.Scale.X; |
1195 | float sy = m_shape.Scale.Y; | ||
1196 | float sz = m_shape.Scale.Z; | ||
1197 | |||
1198 | if( sx > sy) | ||
1195 | { | 1199 | { |
1196 | a = m_shape.Scale.X; | 1200 | a = sx; |
1197 | if(m_shape.Scale.Y > m_shape.Scale.Z) | 1201 | if(sy > sz) |
1198 | b = m_shape.Scale.Y; | 1202 | b = sy; |
1199 | else | 1203 | else |
1200 | b = m_shape.Scale.Z; | 1204 | b = sz; |
1201 | } | 1205 | } |
1202 | else | 1206 | else |
1203 | { | 1207 | { |
1204 | a = m_shape.Scale.Y; | 1208 | a = sy; |
1205 | if(m_shape.Scale.X > m_shape.Scale.Z) | 1209 | if(sx > sz) |
1206 | b = m_shape.Scale.X; | 1210 | b = sx; |
1207 | else | 1211 | else |
1208 | b = m_shape.Scale.Z; | 1212 | b = sz; |
1209 | } | 1213 | } |
1210 | 1214 | ||
1211 | return a*b; | 1215 | return a * b; |
1212 | } | 1216 | } |
1213 | 1217 | ||
1214 | public UpdateRequired UpdateFlag { get; set; } | 1218 | public UpdateRequired UpdateFlag { get; set; } |