We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi all,
I'm trying to create a box where every face is subdivided into small triangular faces. I tried to use the beginShape() function to create all the triangles but I cannot find a good way of organizing the vertices position.
Can anyone give me any suggestion? thanks, J_D
Answers
you wrote
does this mean 2 triangles per face?
could you show your code please?
https://www.processing.org/examples/texturecube.html
Hi Chrisir. This is my actual code, I managed to create a box but I'm not sure this is the correct way of doing it (i.e. I'm not sure about the orientation of the faces, should I follow some rule to obtain the normal of the each triangles directed to outside?) And also, The next step would be to move the vertices along vectors. If I create the box in this way, is it still possible to achieve the next step? or do I need to rethink the overall code? Thank you.