Hello again.
This last week i tried to create a custom Object3D with addTriangle() but it didn't work as I expected.
I have a 2D polygon of a road segment which contains two int arrays:
int xPoly[] = { 468, 551, 551, 606, 606, 676, 678, 609, 609, 608, 608,
608, 608, 607, 607, 607, 607, 606, 606, 605, 605, 551, 551, 468 };
int yPoly[] = { 424, 419, 419, 426, 426, 358, 362, 429, 429, 430, 430,
430, 430, 430, 430, 430, 430, 430, 430, 430, 430, 423, 423, 428 };
Now my question is, how to create a Object3D based on these two arrays. Can I use the constructor: public Object3D(float[] coordinates, float[] uvs, int[] indices, int textureId). If that's possible, can someone post a example how to use this constructor in my case?
Thanks in advance