From d21cbfb46d2ddf08902a4d8c66539c67d32ba88c Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 29 Jul 2023 15:57:17 +0900 Subject: [PATCH] move function to a different location in the code --- .../Geom/DemoInputGeomProvider.cs | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) 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