@rojele wrote:
Hi, everyone,
I’m trying to access to z position of different vertexs of the multiple triangles in a mesh in order to move them in 3d space, but I don’t get to give them a new value.
I’m using the zach liebermann lib ofxTriangleMesh.
I’m trying to find the positions in the struct “meshTriangle”, as I guess I that’s the proper way, but I don’t know exactly how.
In fact, when I try to cout the values of meshTriangle.pts
for(int it=0; it<mesh.triangles[i].pts.size();it++){
cout << mesh.triangles[i].pts[2];cout << "\n";
}
I get the following error:
`member reference base ‘ofPoint[3]’ is not a structure or union`
, so I don't even know how to handle the values.Any help would be very welcome, a lot of thanks in advance!
Posts: 2
Participants: 1