diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 0e3cffb..eed5ebc 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -5038,7 +5038,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
5038 | } | 5038 | } |
5039 | } | 5039 | } |
5040 | 5040 | ||
5041 | public Vector3[] GetCombinedBoundingBox(List<SceneObjectGroup> objects, out float minX, out float maxX, out float minY, out float maxY, out float minZ, out float maxZ) | 5041 | /// <summary> |
5042 | /// Get the volume of space that will encompass all the given objects. | ||
5043 | /// </summary> | ||
5044 | /// <param name="objects"></param> | ||
5045 | /// <param name="minX"></param> | ||
5046 | /// <param name="maxX"></param> | ||
5047 | /// <param name="minY"></param> | ||
5048 | /// <param name="maxY"></param> | ||
5049 | /// <param name="minZ"></param> | ||
5050 | /// <param name="maxZ"></param> | ||
5051 | /// <returns></returns> | ||
5052 | public static Vector3[] GetCombinedBoundingBox( | ||
5053 | List<SceneObjectGroup> objects, | ||
5054 | out float minX, out float maxX, out float minY, out float maxY, out float minZ, out float maxZ) | ||
5042 | { | 5055 | { |
5043 | minX = 256; | 5056 | minX = 256; |
5044 | maxX = -256; | 5057 | maxX = -256; |
@@ -5056,6 +5069,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
5056 | Vector3 vec = g.AbsolutePosition; | 5069 | Vector3 vec = g.AbsolutePosition; |
5057 | 5070 | ||
5058 | g.GetAxisAlignedBoundingBoxRaw(out ominX, out omaxX, out ominY, out omaxY, out ominZ, out omaxZ); | 5071 | g.GetAxisAlignedBoundingBoxRaw(out ominX, out omaxX, out ominY, out omaxY, out ominZ, out omaxZ); |
5072 | |||
5073 | // m_log.DebugFormat( | ||
5074 | // "[SCENE]: For {0} found AxisAlignedBoundingBoxRaw {1}, {2}", | ||
5075 | // g.Name, new Vector3(ominX, ominY, ominZ), new Vector3(omaxX, omaxY, omaxZ)); | ||
5059 | 5076 | ||
5060 | ominX += vec.X; | 5077 | ominX += vec.X; |
5061 | omaxX += vec.X; | 5078 | omaxX += vec.X; |