diff --git a/src/DotRecast.Recast.DemoTool/Geom/DemoInputGeomProvider.cs b/src/DotRecast.Recast.DemoTool/Geom/DemoInputGeomProvider.cs index ac05dd5..df97561 100644 --- a/src/DotRecast.Recast.DemoTool/Geom/DemoInputGeomProvider.cs +++ b/src/DotRecast.Recast.DemoTool/Geom/DemoInputGeomProvider.cs @@ -42,28 +42,6 @@ namespace DotRecast.Recast.DemoTool.Geom { } - private static int[] MapFaces(List 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 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 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 vertexPositions) + { + float[] vertices = new float[vertexPositions.Count]; + for (int i = 0; i < vertices.Length; i++) + { + vertices[i] = vertexPositions[i]; + } + + return vertices; + } } } \ No newline at end of file