From 3d8384b6963e0c0c83991b4d9045095e554d890a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 12 Oct 2015 00:49:07 +0100 Subject: detect a fully degenerated mesh and avoid using it and so crashing ubOde --- OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs') diff --git a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs index da8f623..b860255 100644 --- a/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs +++ b/OpenSim/Region/PhysicsModules/ubOdeMeshing/Mesh.cs @@ -278,6 +278,16 @@ namespace OpenSim.Region.PhysicsModule.ubODEMeshing return new Vector3(x, y, z); } + public int numberVertices() + { + return m_bdata.m_vertices.Count; + } + + public int numberTriangles() + { + return m_bdata.m_triangles.Count; + } + public List getVertexList() { List result = new List(); -- cgit v1.1