Ready for 3D models yo

This commit is contained in:
Alexander Munch-Hansen 2019-04-23 14:25:46 +02:00
parent 99cceb77bb
commit 29e4a7a733
2 changed files with 16 additions and 9 deletions

View File

@ -134,18 +134,22 @@ public class python_test : MonoBehaviour
//List<Point> points = new List<Point>();
MatOfPoint2f points = new MatOfPoint2f();
points.alloc(16);
points.alloc(64);
for (int i = 0; i < 64; i++)
{
int x = ((i+1) % 8) * 165;
int y = (int)(i/8);
var board = homographyAndState.board;
int indexer = 0;
for (int y = 1; y < 9; y++)
{
for (int x = 1; x < 9; x++)
{
var cur_pos = board[x - 1][y - 1];
points.put(indexer, 0, (cur_pos != 6 ? 1 : 0) * y * 165, (cur_pos != 6 ? 1 : 0) * x * 165);
indexer += 1;
}
}
/*
int cur_level = 0;
int index = 0;
for (int x = 0; x < 8; x++)
@ -158,7 +162,7 @@ public class python_test : MonoBehaviour
index += 1;
//Imgproc.circle(outputMat, new Point(cur_level, y), 50, new Scalar(255, 0, 0), -1);
}
}
}*/
MatOfPoint2f dstPoints = new MatOfPoint2f();

View File

@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="DynamicLanguageRuntime" version="1.2.2" targetFramework="net471" />
<package id="IronPython" version="2.7.9" targetFramework="net471" />
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net471" />
<package id="Unity.Newtonsoft.Json" version="7.0.0.0" targetFramework="net471" />
</packages>