diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Physics/Manager/IMesher.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/Manager/IMesher.cs b/OpenSim/Region/Physics/Manager/IMesher.cs index 3a9ca1b..ecc2918 100644 --- a/OpenSim/Region/Physics/Manager/IMesher.cs +++ b/OpenSim/Region/Physics/Manager/IMesher.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Runtime.InteropServices; | ||
30 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
31 | using OpenMetaverse; | 32 | using OpenMetaverse; |
32 | 33 | ||
@@ -36,6 +37,11 @@ namespace OpenSim.Region.Physics.Manager | |||
36 | { | 37 | { |
37 | IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod); | 38 | IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod); |
38 | IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical); | 39 | IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical); |
40 | IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex, bool forOde); | ||
41 | IMesh GetMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex); | ||
42 | void ReleaseMesh(IMesh mesh); | ||
43 | void ExpireReleaseMeshs(); | ||
44 | void ExpireFileCache(); | ||
39 | } | 45 | } |
40 | 46 | ||
41 | // Values for level of detail to be passed to the mesher. | 47 | // Values for level of detail to be passed to the mesher. |
@@ -53,6 +59,25 @@ namespace OpenSim.Region.Physics.Manager | |||
53 | { | 59 | { |
54 | } | 60 | } |
55 | 61 | ||
62 | [Serializable()] | ||
63 | [StructLayout(LayoutKind.Explicit)] | ||
64 | public struct AMeshKey | ||
65 | { | ||
66 | [FieldOffset(0)] | ||
67 | public UUID uuid; | ||
68 | [FieldOffset(0)] | ||
69 | public ulong hashA; | ||
70 | [FieldOffset(8)] | ||
71 | public ulong hashB; | ||
72 | [FieldOffset(16)] | ||
73 | public ulong hashC; | ||
74 | |||
75 | public override string ToString() | ||
76 | { | ||
77 | return uuid.ToString() + "-" + hashC.ToString("x") ; | ||
78 | } | ||
79 | } | ||
80 | |||
56 | public interface IMesh | 81 | public interface IMesh |
57 | { | 82 | { |
58 | List<Vector3> getVertexList(); | 83 | List<Vector3> getVertexList(); |
@@ -65,5 +90,7 @@ namespace OpenSim.Region.Physics.Manager | |||
65 | void releasePinned(); | 90 | void releasePinned(); |
66 | void Append(IMesh newMesh); | 91 | void Append(IMesh newMesh); |
67 | void TransformLinear(float[,] matrix, float[] offset); | 92 | void TransformLinear(float[,] matrix, float[] offset); |
93 | Vector3 GetCentroid(); | ||
94 | Vector3 GetOBB(); | ||
68 | } | 95 | } |
69 | } | 96 | } |