Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh.c
| Show First 20 Lines • Show All 627 Lines • ▼ Show 20 Lines | Mesh *BKE_mesh_new_nomain(int verts_len, int edges_len, int tessface_len, int loops_len, int polys_len) | ||||
| CustomData_add_layer(&mesh->pdata, CD_MPOLY, CD_CALLOC, NULL, polys_len); | CustomData_add_layer(&mesh->pdata, CD_MPOLY, CD_CALLOC, NULL, polys_len); | ||||
| mesh->mvert = CustomData_get_layer(&mesh->vdata, CD_MVERT); | mesh->mvert = CustomData_get_layer(&mesh->vdata, CD_MVERT); | ||||
| mesh->medge = CustomData_get_layer(&mesh->edata, CD_MEDGE); | mesh->medge = CustomData_get_layer(&mesh->edata, CD_MEDGE); | ||||
| mesh->mface = CustomData_get_layer(&mesh->fdata, CD_MFACE); | mesh->mface = CustomData_get_layer(&mesh->fdata, CD_MFACE); | ||||
| mesh->mloop = CustomData_get_layer(&mesh->ldata, CD_MLOOP); | mesh->mloop = CustomData_get_layer(&mesh->ldata, CD_MLOOP); | ||||
| mesh->mpoly = CustomData_get_layer(&mesh->pdata, CD_MPOLY); | mesh->mpoly = CustomData_get_layer(&mesh->pdata, CD_MPOLY); | ||||
| mesh->totvert = verts_len; | |||||
| mesh->totedge = edges_len; | |||||
| mesh->totloop = loops_len; | |||||
| mesh->totpoly = polys_len; | |||||
| return mesh; | return mesh; | ||||
| } | } | ||||
| static Mesh *mesh_new_nomain_from_template_ex( | static Mesh *mesh_new_nomain_from_template_ex( | ||||
| const Mesh *me_src, | const Mesh *me_src, | ||||
| int verts_len, int edges_len, int tessface_len, | int verts_len, int edges_len, int tessface_len, | ||||
| int loops_len, int polys_len, | int loops_len, int polys_len, | ||||
| CustomDataMask mask) | CustomDataMask mask) | ||||
| ▲ Show 20 Lines • Show All 1,210 Lines • Show Last 20 Lines | |||||