move function to a different location in the code

This commit is contained in:
ikpil 2023-07-29 15:57:17 +09:00
parent 0ab618bc15
commit d21cbfb46d
1 changed files with 22 additions and 22 deletions

View File

@ -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) public DemoInputGeomProvider(float[] vertices, int[] faces)
{ {
this.vertices = vertices; this.vertices = vertices;
@ -229,5 +207,27 @@ namespace DotRecast.Recast.DemoTool.Geom
{ {
_convexVolumes.Clear(); _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;
}
} }
} }