Answer the question
In order to leave comments, you need to log in
How do you get faces coordinates?
Hey!
Can anyone explain to me in a purely brotherly way how the Basurmans get the coordinates of the faces?
I don't have any ideas. The text in English did not give me anything, it reminds me of a meme how to draw an owl.
float[] points =
{
50, 0, 0, // v0 (iv0 = 0)
45, 10, 0, // v1 (iv1 = 1)
55, 10, 0 // v2 (iv2 = 2)
};
float[] texCoords =
{
0.5f, 0.5f, // t0 (it0 = 0)
0.0f, 1.0f, // t1 (it1 = 1)
1.0f, 1.0f // t2 (it2 = 2)
};
int[] faces =
{
0, 0, 2, 2, 1, 1, // iv0, it0, iv2, it2, iv1, it1 (front face)
0, 0, 1, 1, 2, 2 // iv0, it0, iv1, it1, iv2, it2 back face
};
Answer the question
In order to leave comments, you need to log in
And what is not clear here, even the comments explain everything. And in the original source , everything is there with pictures.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question