mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
ConvexDecomposition remove a copy of vertices not needed for ubOde
This commit is contained in:
@@ -1094,7 +1094,7 @@ namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
|
||||
return m;
|
||||
}
|
||||
|
||||
for (int i = m; i < count; i++)
|
||||
for (int i = m + 1; i < count; i++)
|
||||
{
|
||||
if (allow[i] != 0)
|
||||
{
|
||||
@@ -1540,6 +1540,19 @@ namespace OpenSim.Region.PhysicsModules.ConvexDecompositionDotNet
|
||||
}
|
||||
}
|
||||
|
||||
public static bool ComputeHull(List<float3> vertices, out List<int> indices)
|
||||
{
|
||||
List<HullTriangle> tris = new List<HullTriangle>();
|
||||
|
||||
bool ret = calchull(vertices, out indices, 0, tris);
|
||||
if (ret == false)
|
||||
{
|
||||
indices = new List<int>();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private static bool CleanupVertices(List<float3> svertices, out List<float3> vertices, float normalepsilon, out float3 scale)
|
||||
{
|
||||
const float EPSILON = 0.000001f;
|
||||
|
||||
Reference in New Issue
Block a user