forked from bit/DotRecastNetSim
move function to a different location in the code
This commit is contained in:
parent
0ab618bc15
commit
d21cbfb46d
|
@ -42,28 +42,6 @@ namespace DotRecast.Recast.DemoTool.Geom
|
|||
{
|
||||
}
|
||||
|
||||
private static int[] MapFaces(List<int> meshFaces)
|
||||
{
|
||||
int[] faces = new int[meshFaces.Count];
|
||||
for (int i = 0; i < faces.Length; i++)
|
||||
{
|
||||
faces[i] = meshFaces[i];
|
||||
}
|
||||
|
||||
return faces;
|
||||
}
|
||||
|
||||
private static float[] MapVertices(List<float> vertexPositions)
|
||||
{
|
||||
float[] vertices = new float[vertexPositions.Count];
|
||||
for (int i = 0; i < vertices.Length; i++)
|
||||
{
|
||||
vertices[i] = vertexPositions[i];
|
||||
}
|
||||
|
||||
return vertices;
|
||||
}
|
||||
|
||||
public DemoInputGeomProvider(float[] vertices, int[] faces)
|
||||
{
|
||||
this.vertices = vertices;
|
||||
|
@ -229,5 +207,27 @@ namespace DotRecast.Recast.DemoTool.Geom
|
|||
{
|
||||
_convexVolumes.Clear();
|
||||
}
|
||||
|
||||
private static int[] MapFaces(List<int> meshFaces)
|
||||
{
|
||||
int[] faces = new int[meshFaces.Count];
|
||||
for (int i = 0; i < faces.Length; i++)
|
||||
{
|
||||
faces[i] = meshFaces[i];
|
||||
}
|
||||
|
||||
return faces;
|
||||
}
|
||||
|
||||
private static float[] MapVertices(List<float> vertexPositions)
|
||||
{
|
||||
float[] vertices = new float[vertexPositions.Count];
|
||||
for (int i = 0; i < vertices.Length; i++)
|
||||
{
|
||||
vertices[i] = vertexPositions[i];
|
||||
}
|
||||
|
||||
return vertices;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue