Lines Matching refs:totpoly

99     me->totpoly = dl->parts;  in BKE_mesh_from_metaball()
146 MEdge **r_alledge, int *r_totedge, const MPoly *mpoly, MLoop *mloop, const int totpoly) in make_edges_mdata_extend() argument
155 eh_reserve = max_ii(totedge, BLI_EDGEHASH_SIZE_GUESS_FROM_POLYS(totpoly)); in make_edges_mdata_extend()
158 for (i = 0, mp = mpoly; i < totpoly; i++, mp++) { in make_edges_mdata_extend()
199 for (i = 0, mp = mpoly; i < totpoly; i++, mp++) { in make_edges_mdata_extend()
270 int a, b, ofs, vertcount, startvert, totvert = 0, totedge = 0, totloop = 0, totpoly = 0; in BKE_mesh_nurbs_displist_to_mdata() local
297 totpoly += tot; in BKE_mesh_nurbs_displist_to_mdata()
305 totpoly += tot; in BKE_mesh_nurbs_displist_to_mdata()
320 totpoly, sizeof(MLoop[4]), "nurbs_init mloop"); /* totloop */ in BKE_mesh_nurbs_displist_to_mdata()
321 *r_allpoly = mpoly = MEM_calloc_arrayN(totpoly, sizeof(MPoly), "nurbs_init mloop"); in BKE_mesh_nurbs_displist_to_mdata()
324 *r_alluv = mloopuv = MEM_calloc_arrayN(totpoly, sizeof(MLoopUV[4]), "nurbs_init mloopuv"); in BKE_mesh_nurbs_displist_to_mdata()
514 if (totpoly) { in BKE_mesh_nurbs_displist_to_mdata()
515 make_edges_mdata_extend(r_alledge, &totedge, *r_allpoly, *r_allloop, totpoly); in BKE_mesh_nurbs_displist_to_mdata()
518 *r_totpoly = totpoly; in BKE_mesh_nurbs_displist_to_mdata()
534 int totvert, totedge, totloop, totpoly; in BKE_mesh_new_nomain_from_curve_displist() local
546 &totpoly) != 0) { in BKE_mesh_new_nomain_from_curve_displist()
551 mesh = BKE_mesh_new_nomain(totvert, totedge, 0, totloop, totpoly); in BKE_mesh_new_nomain_from_curve_displist()
557 memcpy(mesh->mpoly, allpoly, totpoly * sizeof(MPoly)); in BKE_mesh_new_nomain_from_curve_displist()
596 int totvert, totedge, totloop, totpoly; in BKE_mesh_from_nurbs_displist() local
611 &totpoly) != 0) { in BKE_mesh_from_nurbs_displist()
627 me->totpoly = totpoly; in BKE_mesh_from_nurbs_displist()
632 me->mpoly = CustomData_add_layer(&me->pdata, CD_MPOLY, CD_ASSIGN, allpoly, me->totpoly); in BKE_mesh_from_nurbs_displist()
747 int mpoly_len = me->totpoly; in BKE_mesh_to_curve_nurblist()
785 int totpoly = 0; in BKE_mesh_to_curve_nurblist() local
792 totpoly++; in BKE_mesh_to_curve_nurblist()
794 totpoly++; in BKE_mesh_to_curve_nurblist()
809 totpoly++; in BKE_mesh_to_curve_nurblist()
817 totpoly++; in BKE_mesh_to_curve_nurblist()
825 totpoly++; in BKE_mesh_to_curve_nurblist()
833 totpoly++; in BKE_mesh_to_curve_nurblist()
846 totpoly--; in BKE_mesh_to_curve_nurblist()
859 nu->pntsu = totpoly; in BKE_mesh_to_curve_nurblist()
865 nu->bp = (BPoint *)MEM_calloc_arrayN(totpoly, sizeof(BPoint), "bpoints"); in BKE_mesh_to_curve_nurblist()
869 for (i = 0, bp = nu->bp; i < totpoly; i++, bp++, vl = (VertLink *)vl->next) { in BKE_mesh_to_curve_nurblist()
1537 int totvert, totedge /*, totface */ /* UNUSED */, totloop, totpoly; in BKE_mesh_nomain_to_mesh() local
1562 totpoly = tmp.totpoly = mesh_src->totpoly; in BKE_mesh_nomain_to_mesh()
1568 CustomData_copy(&mesh_src->pdata, &tmp.pdata, mask->pmask, alloctype, totpoly); in BKE_mesh_nomain_to_mesh()
1628 CustomData_add_layer(&tmp.pdata, CD_MPOLY, CD_ASSIGN, tmp.mpoly, tmp.totpoly); in BKE_mesh_nomain_to_mesh()
1650 CustomData_free(&mesh_dst->pdata, mesh_dst->totpoly); in BKE_mesh_nomain_to_mesh()
1681 CustomData_free_typemask(&mesh_src->pdata, mesh_src->totpoly, ~mask->pmask); in BKE_mesh_nomain_to_mesh()