Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh_debug.cc
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | char *BKE_mesh_debug_info(const Mesh *me) | ||||
| BLI_dynstr_append(dynstr, "{\n"); | BLI_dynstr_append(dynstr, "{\n"); | ||||
| BLI_dynstr_appendf(dynstr, " 'ptr': '%p',\n", (void *)me); | BLI_dynstr_appendf(dynstr, " 'ptr': '%p',\n", (void *)me); | ||||
| BLI_dynstr_appendf(dynstr, " 'totvert': %d,\n", me->totvert); | BLI_dynstr_appendf(dynstr, " 'totvert': %d,\n", me->totvert); | ||||
| BLI_dynstr_appendf(dynstr, " 'totedge': %d,\n", me->totedge); | BLI_dynstr_appendf(dynstr, " 'totedge': %d,\n", me->totedge); | ||||
| BLI_dynstr_appendf(dynstr, " 'totface': %d,\n", me->totface); | BLI_dynstr_appendf(dynstr, " 'totface': %d,\n", me->totface); | ||||
| BLI_dynstr_appendf(dynstr, " 'totpoly': %d,\n", me->totpoly); | BLI_dynstr_appendf(dynstr, " 'totpoly': %d,\n", me->totpoly); | ||||
| BLI_dynstr_appendf(dynstr, " 'runtime.deformed_only': %d,\n", me->runtime.deformed_only); | BLI_dynstr_appendf(dynstr, " 'runtime.deformed_only': %d,\n", me->runtime.deformed_only); | ||||
| BLI_dynstr_appendf(dynstr, " 'runtime.is_original': %d,\n", me->runtime.is_original); | BLI_dynstr_appendf( | ||||
| dynstr, " 'runtime.is_original_bmesh': %d,\n", me->runtime.is_original_bmesh); | |||||
| BLI_dynstr_append(dynstr, " 'vert_layers': (\n"); | BLI_dynstr_append(dynstr, " 'vert_layers': (\n"); | ||||
| CustomData_debug_info_from_layers(&me->vdata, indent8, dynstr); | CustomData_debug_info_from_layers(&me->vdata, indent8, dynstr); | ||||
| BLI_dynstr_append(dynstr, " ),\n"); | BLI_dynstr_append(dynstr, " ),\n"); | ||||
| BLI_dynstr_append(dynstr, " 'edge_layers': (\n"); | BLI_dynstr_append(dynstr, " 'edge_layers': (\n"); | ||||
| CustomData_debug_info_from_layers(&me->edata, indent8, dynstr); | CustomData_debug_info_from_layers(&me->edata, indent8, dynstr); | ||||
| BLI_dynstr_append(dynstr, " ),\n"); | BLI_dynstr_append(dynstr, " ),\n"); | ||||
| Show All 32 Lines | |||||