Data Structures help!

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
Posts: 0
Joined: Sat Apr 21, 2012 12:43 pm

Data Structures help!

Post by Simo » Sat Apr 21, 2012 12:48 pm

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!

Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Sat Apr 21, 2012 6:14 pm

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.

Post Reply