Previous Thread  Next Thread

chat icon Data Structures help!


Posted: Sat Apr 21, 2012 11:48 am
Joined: 21 Apr 2012
Posts: 1
Hi everyone! I'm an Italian student and I need some help with blender source code.
I don't understand how to get some attributes of data structures, in particular I need to print Mesh (and the associated EditBMesh) vertex coordinates and normals.
Are them organized in array, list or in other way?

This are my information:
int j = 0;
Object *obedit;
Mesh *me;
obedit = CTX_data_edit_object(C);
me = obedit->data;

for (j=0; j<totvert; j++){
printf(%f %f %f, ???, ???, ???);
how can I print vertex of the mesh pointed by me?

Thanks and sorry for my English!
Reply with quote


Posted: Sat Apr 21, 2012 5:14 pm
Joined: 05 Aug 2003
Posts: 3645
The various data structures are defined in the header (.h) files.

To browse the source code, it is helpful to have a tool like cscope or Source Navigator.
Reply with quote

Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group