Lines Matching refs:totpoly

99                                    mesh->totpoly,  in BKE_mesh_calc_normals_mapping_simple()
417 poly_nors = MEM_malloc_arrayN((size_t)mesh->totpoly, sizeof(*poly_nors), __func__); in BKE_mesh_ensure_normals_for_display()
427 mesh->totpoly, in BKE_mesh_ensure_normals_for_display()
432 CustomData_add_layer(&mesh->pdata, CD_NORMAL, CD_ASSIGN, poly_nors, mesh->totpoly); in BKE_mesh_ensure_normals_for_display()
453 mesh->totpoly, in BKE_mesh_calc_normals()
2062 polynors = MEM_mallocN(sizeof(float[3]) * (size_t)mesh->totpoly, __func__); in mesh_set_custom_normals()
2069 mesh->totpoly, in mesh_set_custom_normals()
2084 mesh->totpoly, in mesh_set_custom_normals()
2330 int i = me->totpoly; in BKE_mesh_calc_area()
2563 int i = me->totpoly; in BKE_mesh_center_median_from_polys()
2577 if (me->totpoly) { in BKE_mesh_center_median_from_polys()
2580 return (me->totpoly != 0); in BKE_mesh_center_median_from_polys()
2597 int i = me->totpoly; in BKE_mesh_center_of_surface()
2614 if (me->totpoly) { in BKE_mesh_center_of_surface()
2623 return (me->totpoly != 0); in BKE_mesh_center_of_surface()
2632 int i = me->totpoly; in BKE_mesh_center_of_volume()
2667 return (me->totpoly != 0); in BKE_mesh_center_of_volume()
3027 int totpoly, in BKE_mesh_tessface_calc_ex() argument
3039 const int looptri_num = poly_to_tri_count(totpoly, totloop); in BKE_mesh_tessface_calc_ex()
3062 for (poly_index = 0; poly_index < totpoly; poly_index++, mp++) { in BKE_mesh_tessface_calc_ex()
3288 int totpoly, in BKE_mesh_recalc_looptri() argument
3305 for (poly_index = 0; poly_index < totpoly; poly_index++, mp++) { in BKE_mesh_recalc_looptri()
3416 BLI_assert(mlooptri_index == poly_to_tri_count(totpoly, totloop)); in BKE_mesh_recalc_looptri()
3532 mesh->totpoly, in BKE_mesh_convert_mfaces_to_mpolys()
3536 &mesh->totpoly, in BKE_mesh_convert_mfaces_to_mpolys()
3564 mesh->totpoly, in BKE_mesh_do_versions_convert_mfaces_to_mpolys()
3568 &mesh->totpoly, in BKE_mesh_do_versions_convert_mfaces_to_mpolys()
3598 int i, j, totloop, totpoly, *polyindex; in BKE_mesh_convert_mfaces_to_mpolys_ex() local
3607 totpoly = totface_i; in BKE_mesh_convert_mfaces_to_mpolys_ex()
3608 mpoly = MEM_calloc_arrayN((size_t)totpoly, sizeof(MPoly), "mpoly converted"); in BKE_mesh_convert_mfaces_to_mpolys_ex()
3609 CustomData_add_layer(pdata, CD_MPOLY, CD_ASSIGN, mpoly, totpoly); in BKE_mesh_convert_mfaces_to_mpolys_ex()
3692 *r_totpoly = totpoly; in BKE_mesh_convert_mfaces_to_mpolys_ex()
3803 void BKE_mesh_polygons_flip(MPoly *mpoly, MLoop *mloop, CustomData *ldata, int totpoly) in BKE_mesh_polygons_flip() argument
3809 for (mp = mpoly, i = 0; i < totpoly; mp++, i++) { in BKE_mesh_polygons_flip()
3825 const int totpoly) in BKE_mesh_flush_hidden_from_verts_ex() argument
3838 for (i = 0; i < totpoly; i++) { in BKE_mesh_flush_hidden_from_verts_ex()
3851 me->mvert, me->mloop, me->medge, me->totedge, me->mpoly, me->totpoly); in BKE_mesh_flush_hidden_from_verts()
3859 const int totpoly) in BKE_mesh_flush_hidden_from_polys_ex() argument
3861 int i = totpoly; in BKE_mesh_flush_hidden_from_polys_ex()
3873 i = totpoly; in BKE_mesh_flush_hidden_from_polys_ex()
3888 me->mvert, me->mloop, me->medge, me->totedge, me->mpoly, me->totpoly); in BKE_mesh_flush_hidden_from_polys()
3900 const int totpoly) in BKE_mesh_flush_select_from_polys_ex() argument
3916 i = totpoly; in BKE_mesh_flush_select_from_polys_ex()
3934 me->mvert, me->totvert, me->mloop, me->medge, me->totedge, me->mpoly, me->totpoly); in BKE_mesh_flush_select_from_polys()
3943 const int totpoly) in BKE_mesh_flush_select_from_verts_ex() argument
3962 i = totpoly; in BKE_mesh_flush_select_from_verts_ex()
3988 me->mvert, me->totvert, me->mloop, me->medge, me->totedge, me->mpoly, me->totpoly); in BKE_mesh_flush_select_from_verts()
4008 const int totpoly, in BKE_mesh_calc_relative_deform() argument
4025 for (i = 0, mp = mpoly; i < totpoly; i++, mp++) { in BKE_mesh_calc_relative_deform()