Ready for 3D models yo
This commit is contained in:
parent
99cceb77bb
commit
29e4a7a733
|
@ -134,18 +134,22 @@ public class python_test : MonoBehaviour
|
||||||
|
|
||||||
//List<Point> points = new List<Point>();
|
//List<Point> points = new List<Point>();
|
||||||
MatOfPoint2f points = new MatOfPoint2f();
|
MatOfPoint2f points = new MatOfPoint2f();
|
||||||
points.alloc(16);
|
points.alloc(64);
|
||||||
|
|
||||||
|
var board = homographyAndState.board;
|
||||||
for (int i = 0; i < 64; i++)
|
int indexer = 0;
|
||||||
{
|
for (int y = 1; y < 9; y++)
|
||||||
int x = ((i+1) % 8) * 165;
|
{
|
||||||
int y = (int)(i/8);
|
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 cur_level = 0;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (int x = 0; x < 8; x++)
|
for (int x = 0; x < 8; x++)
|
||||||
|
@ -158,7 +162,7 @@ public class python_test : MonoBehaviour
|
||||||
index += 1;
|
index += 1;
|
||||||
//Imgproc.circle(outputMat, new Point(cur_level, y), 50, new Scalar(255, 0, 0), -1);
|
//Imgproc.circle(outputMat, new Point(cur_level, y), 50, new Scalar(255, 0, 0), -1);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
MatOfPoint2f dstPoints = new MatOfPoint2f();
|
MatOfPoint2f dstPoints = new MatOfPoint2f();
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="DynamicLanguageRuntime" version="1.2.2" targetFramework="net471" />
|
<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>
|
</packages>
|
Loading…
Reference in New Issue
Block a user