Hello,
I want to get specific data of all the sides of a mesh, but I’m not sure how I would achieve what I want.
To elaborate, for each side of a mesh, I want to create an object called side.
Side should have following items:
- the amount of points/vertices that make up the side (so for a box 4)
- an array of all the vertices (as position vectors) that make up the side (preferably in clockwise-like order, so if the first vert in the array is the bottom-left one, the 2nd vert in the array shouldn’t be the top-right vert etc.)
In this case, for a box, the array would have 4 vectors.
The position of the verts should also take the mesh transformations into account (so rotation, scaling etc.)
I’m not really sure where to begin, as fetching the vertices data of a box mesh for example, returns an array of 72 vertices, and I’m not sure how to iterate through these vertices in order to get the data.
Tagging @Evgeni_Popov