Lines Matching refs:totpoly

117   const bool do_tessface = ((mesh_src->totface != 0) && (mesh_src->totpoly == 0));  in mesh_copy_data()
132 CustomData_copy(&mesh_src->pdata, &mesh_dst->pdata, mask.pmask, alloc_type, mesh_dst->totpoly); in mesh_copy_data()
216 writer, &mesh->pdata, players, mesh->totpoly, CD_MASK_MESH.pmask, &mesh->id); in mesh_blend_write()
267 CustomData_blend_read(reader, &mesh->pdata, mesh->totpoly); in mesh_blend_read_data()
518 int ptot = m1->totpoly; in customdata_compare()
624 if (me1->totpoly != me2->totpoly) { in BKE_mesh_cmp()
653 if (UNLIKELY((me->totface != 0) && (me->totpoly == 0))) { in mesh_ensure_tessellation_customdata()
735 CustomData_add_layer(&me->pdata, CD_FACEMAP, CD_DEFAULT, NULL, me->totpoly); in BKE_mesh_ensure_facemap_customdata()
754 CustomData_free_layers(&me->pdata, CD_FACEMAP, me->totpoly); in BKE_mesh_clear_facemap_customdata()
817 CustomData_free(&mesh->pdata, mesh->totpoly); in mesh_clear_geometry()
830 mesh->totpoly = 0; in mesh_clear_geometry()
881 CustomData_add_layer(&mesh->pdata, CD_MPOLY, CD_CALLOC, NULL, mesh->totpoly); in mesh_ensure_cdlayers_primary()
907 mesh->totpoly = polys_len; in BKE_mesh_new_nomain()
953 const bool do_tessface = (tessface_len || ((me_src->totface != 0) && (me_src->totpoly == 0))); in BKE_mesh_new_nomain_from_template_ex()
963 me_dst->totpoly = polys_len; in BKE_mesh_new_nomain_from_template_ex()
1331 for (mp = me->mpoly, i = 0; i < me->totpoly; i++, mp++) { in BKE_mesh_material_index_remove()
1350 for (mp = me->mpoly, i = 0; i < me->totpoly; i++, mp++) { in BKE_mesh_material_index_used()
1371 for (mp = me->mpoly, i = 0; i < me->totpoly; i++, mp++) { in BKE_mesh_material_index_clear()
1402 for (i = 0; i < me->totpoly; i++) { in BKE_mesh_material_remap()
1413 for (int i = 0; i < me->totpoly; i++) { in BKE_mesh_smooth_flag_set()
1418 for (int i = 0; i < me->totpoly; i++) { in BKE_mesh_smooth_flag_set()
1569 mesh->totpoly, in BKE_mesh_tessface_calc()
1578 if (mesh->totpoly && mesh->totface == 0) { in BKE_mesh_tessface_ensure()
1847 polynors = MEM_malloc_arrayN(mesh->totpoly, sizeof(float[3]), __func__); in BKE_mesh_calc_normals_split_ex()
1854 mesh->totpoly, in BKE_mesh_calc_normals_split_ex()
1869 mesh->totpoly, in BKE_mesh_calc_normals_split_ex()
1990 const int num_polys = mesh->totpoly; in split_faces_prepare_new_edges()
2093 const int num_polys = mesh->totpoly; in BKE_mesh_split_faces()