/dports/graphics/blender/blender-2.91.0/source/blender/blenkernel/intern/ |
H A D | mesh_validate.cc | 89 const int totedge_guess = std::max(keep_existing_edges ? mesh->totedge : 0, mesh->totpoly * 2); in reserve_hash_maps() 118 for (const MPoly &poly : Span(mesh->mpoly, mesh->totpoly)) { in add_polygon_edges_to_hash_maps() 177 parallel_for(IndexRange(mesh->totpoly), 100, [&](IndexRange range) { in update_edge_indices_in_poly_loops() 207 if (mesh->totpoly < 1000) { in get_parallel_maps_count()
|
H A D | paint.c | 1574 ss->totpoly = me_eval->totpoly; in sculpt_update_object() 1575 ss->totfaces = me->totpoly; in sculpt_update_object() 1585 ss->totpoly = me->totpoly; in sculpt_update_object() 1586 ss->totfaces = me->totpoly; in sculpt_update_object() 1779 for (i = 0; i < me->totpoly; i++) { in BKE_sculpt_mask_layers_ensure() 1878 for (int i = 0; i < mesh->totpoly; i++) { in BKE_sculpt_face_sets_ensure_from_base_mesh_visibility() 1885 &mesh->pdata, CD_SCULPT_FACE_SETS, CD_CALLOC, NULL, mesh->totpoly); in BKE_sculpt_face_sets_ensure_from_base_mesh_visibility() 1889 for (int i = 0; i < mesh->totpoly; i++) { in BKE_sculpt_face_sets_ensure_from_base_mesh_visibility() 1897 for (int i = 0; i < mesh->totpoly; i++) { in BKE_sculpt_face_sets_ensure_from_base_mesh_visibility() 1923 for (int i = 0; i < mesh->totpoly; i++) { in BKE_sculpt_sync_face_sets_visibility_to_base_mesh() [all …]
|
H A D | subdiv_ccg_mask.c | 122 for (int poly_index = 0; poly_index < mesh->totpoly; poly_index++) { in count_num_ptex_faces() 140 for (int poly_index = 0; poly_index < mesh->totpoly; poly_index++) { in mask_data_init_mapping()
|
H A D | data_transfer.c | 277 const int num_polys_dst = me_dst->totpoly; in data_transfer_dtdata_type_preprocess() 358 const int num_polys_dst = me_dst->totpoly; in data_transfer_dtdata_type_postprocess() 1220 me_src->totpoly, in data_transfer_layersmapping_generate() 1221 me_dst->totpoly, in data_transfer_layersmapping_generate() 1352 const int num_elem_dst = me_dst->totpoly; in BKE_object_data_transfer_layout() 1519 if ((map_vert_mode & MREMAP_USE_POLY) && (me_src->totpoly == 0)) { in BKE_object_data_transfer_ex() 1595 if ((map_edge_mode & MREMAP_USE_POLY) && (me_src->totpoly == 0)) { in BKE_object_data_transfer_ex() 1663 const int num_polys_dst = me_dst->totpoly; in BKE_object_data_transfer_ex() 1757 const int num_polys_dst = me_dst->totpoly; in BKE_object_data_transfer_ex() 1763 const int num_polys_src = me_src->totpoly; in BKE_object_data_transfer_ex()
|
H A D | subdiv_converter_mesh.c | 113 return storage->mesh->totpoly; in get_num_faces() 211 const int num_poly = mesh->totpoly; in precalc_uv_layer() 357 for (int poly_index = 0; poly_index < mesh->totpoly; poly_index++) { in initialize_manifold_indices()
|
H A D | subdiv_ccg_material.c | 39 BLI_assert(coarse_face_index < mesh->totpoly); in subdiv_ccg_material_flags_eval()
|
/dports/graphics/blender/blender-2.91.0/source/blender/freestyle/intern/blender_interface/ |
H A D | BlenderStrokeRenderer.h | 54 explicit StrokeGroup() : totvert(0), totedge(0), totpoly(0), totloop(0) in StrokeGroup() 61 int totpoly; member
|
H A D | BlenderStrokeRenderer.cpp | 442 int totvert = 0, totedge = 0, totpoly = 0, totloop = 0; in RenderStrokeRepBasic() local 455 totpoly += visible_faces; in RenderStrokeRepBasic() 473 group->totpoly += totpoly; in RenderStrokeRepBasic() 588 mesh->totpoly = group->totpoly; in GenerateStrokeMesh() 597 &mesh->pdata, CD_MPOLY, CD_CALLOC, NULL, mesh->totpoly); in GenerateStrokeMesh()
|
/dports/graphics/blender/blender-2.91.0/source/blender/io/alembic/intern/ |
H A D | abc_customdata.h | 51 int totpoly; member 85 totpoly(0), in CDStreamConfig()
|
H A D | abc_reader_mesh.cc | 293 for (int i = 0, e = mesh->totpoly; i < e; i++, mpoly++) { in process_loop_normals() 474 config.totpoly = mesh->totpoly; in get_config() 626 face_counts->size() != existing_mesh->totpoly || in topology_changed() 686 if (face_counts->size() != existing_mesh->totpoly || in read_mesh() 710 size_t num_polys = new_mesh->totpoly; in read_mesh() 724 int totpoly, in assign_facesets_to_mpoly() argument 760 if (pos >= totpoly) { in assign_facesets_to_mpoly() 774 assign_facesets_to_mpoly(sample_sel, mesh->mpoly, mesh->totpoly, mat_map); in readFaceSetsSample() 977 if (face_counts->size() != existing_mesh->totpoly || in read_mesh()
|
H A D | abc_customdata.cc | 66 const int num_poly = config.totpoly; in get_uvs() 197 for (int i = 0; i < config.totpoly; i++) { in write_mcol() 277 for (int i = 0; i < config.totpoly; i++) { in read_uvs() 377 for (int i = 0; i < config.totpoly; i++) { in read_custom_data_mcols()
|
/dports/graphics/blender/blender-2.91.0/source/blender/bmesh/intern/ |
H A D | bmesh_mesh.h | 153 (CHECK_TYPE_INLINE(me, Mesh *), (me)->totvert), (me)->totedge, (me)->totloop, (me)->totpoly, \ 161 (me_a)->totpoly + (me_b)->totpoly, \
|
H A D | bmesh_mesh_convert.c | 216 CustomData_bmesh_init_pool(&bm->pdata, me->totpoly, BM_FACE); in BM_mesh_bm_from_me() 301 CustomData_bmesh_init_pool(&bm->pdata, me->totpoly, BM_FACE); in BM_mesh_bm_from_me() 387 ftable = MEM_mallocN(sizeof(BMFace **) * me->totpoly, __func__); in BM_mesh_bm_from_me() 392 for (i = 0, totloops = 0; i < me->totpoly; i++, mp++) { in BM_mesh_bm_from_me() 607 CustomData_free(&me->pdata, me->totpoly); in BM_mesh_bm_to_me() 613 me->totpoly = bm->totface; in BM_mesh_bm_to_me() 625 CustomData_copy(&bm->pdata, &me->pdata, mask.pmask, CD_CALLOC, me->totpoly); in BM_mesh_bm_to_me() 636 CustomData_add_layer(&me->pdata, CD_MPOLY, CD_ASSIGN, mpoly, me->totpoly); in BM_mesh_bm_to_me() 1017 me->totpoly = bm->totface; in BM_mesh_bm_to_me_for_eval() 1038 CustomData_merge(&bm->pdata, &me->pdata, mask.pmask, CD_CALLOC, me->totpoly); in BM_mesh_bm_to_me_for_eval()
|
/dports/graphics/blender/blender-2.91.0/source/blender/modifiers/intern/ |
H A D | MOD_particleinstance.c | 221 int totvert, totpoly, totloop, totedge; in modifyMesh() local 305 totpoly = mesh->totpoly; in modifyMesh() 321 maxpoly += totpoly; in modifyMesh() 502 for (k = 0; k < totpoly; k++) { in modifyMesh() 505 MPoly *mp = mpoly + p_skip * totpoly + k; in modifyMesh() 507 CustomData_copy_data(&mesh->pdata, &result->pdata, k, p_skip * totpoly + k, 1); in modifyMesh()
|
H A D | MOD_boolean.c | 141 if (mesh_self->totpoly == 0 || mesh_operand_ob->totpoly == 0) { in get_quick_mesh() 148 if (mesh_self->totpoly != 0) { in get_quick_mesh() 332 const int i_faces_end = mesh_operand_ob->totpoly; in BMD_mesh_intersection() 462 bat.totface = mesh->totpoly; in collection_boolean_exact() 479 bat.totface += col_mesh->totpoly; in collection_boolean_exact() 501 shape_face_end[i] = me->totpoly + (i == 0 ? 0 : shape_face_end[i - 1]); in collection_boolean_exact()
|
/dports/graphics/blender/blender-2.91.0/source/blender/io/usd/intern/ |
H A D | usd_writer_mesh.cc | 252 usd_mesh_data.face_vertex_counts.reserve(mesh->totpoly); in get_loops_polys() 257 for (int i = 0; i < mesh->totpoly; ++i, ++mpoly) { in get_loops_polys() 383 for (int poly_idx = 0, totpoly = mesh->totpoly; poly_idx < totpoly; ++poly_idx, ++mpoly) { in write_normals() local
|
/dports/graphics/blender/blender-2.91.0/source/blender/io/collada/ |
H A D | GeometryExporter.cpp | 302 int totpolys = me->totpoly; in collect_vertex_counts_per_poly() 339 int totpolys = me->totpoly; in create_mesh_primitive_list() 520 for (i = 0, mpoly = me->mpoly; i < me->totpoly; i++, mpoly++) { in createVertexColorSource() 549 int totpoly = me->totpoly; in createTexcoordsSource() local 577 for (int index = 0; index < totpoly; index++) { in createTexcoordsSource() 648 for (int poly_index = 0; poly_index < me->totpoly; poly_index++) { in create_normals()
|
/dports/graphics/blender/blender-2.91.0/source/blender/makesrna/intern/ |
H A D | rna_mesh_api.c | 108 *r_poly_group_len = mesh->totpoly; in rna_Mesh_calc_smooth_groups() 112 mesh->totpoly, in rna_Mesh_calc_smooth_groups() 184 BKE_mesh_polygons_flip(mesh->mpoly, mesh->mloop, &mesh->ldata, mesh->totpoly); in rna_Mesh_flip_normals()
|
/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/demos/ |
H A D | ipers.c | 71 static unsigned int totpoly = 0; variable 558 totpoly += LODnumpoly[lod]; in drawipers() 613 totpoly = 0; in draw() 637 fr, LODbias, totpoly, totpoly * fr); in draw()
|
/dports/graphics/mesa-demos/mesa-demos-8.4.0/src/demos/ |
H A D | ipers.c | 71 static unsigned int totpoly = 0; variable 558 totpoly += LODnumpoly[lod]; in drawipers() 613 totpoly = 0; in draw() 637 fr, LODbias, totpoly, totpoly * fr); in draw()
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/sculpt_paint/ |
H A D | sculpt_undo.c | 399 for (int i = 0; i < me->totpoly; i++) { in sculpt_undo_restore_face_sets() 514 CustomData_copy(&mesh->pdata, &geometry->pdata, CD_MASK_MESH.pmask, CD_DUPLICATE, mesh->totpoly); in sculpt_undo_geometry_store_data() 519 geometry->totpoly = mesh->totpoly; in sculpt_undo_geometry_store_data() 532 CustomData_free(&mesh->pdata, mesh->totpoly); in sculpt_undo_geometry_restore_data() 537 mesh->totpoly = geometry->totpoly; in sculpt_undo_geometry_restore_data() 547 &geometry->pdata, &mesh->pdata, CD_MASK_MESH.pmask, CD_DUPLICATE, geometry->totpoly); in sculpt_undo_geometry_restore_data() 563 if (geometry->totpoly) { in sculpt_undo_geometry_free_data() 564 CustomData_free(&geometry->pdata, geometry->totpoly); in sculpt_undo_geometry_free_data() 1154 unode->face_sets = MEM_callocN(me->totpoly * sizeof(int), "sculpt face sets"); in sculpt_undo_face_sets_push() 1157 for (int i = 0; i < me->totpoly; i++) { in sculpt_undo_face_sets_push()
|
H A D | paint_utils.c | 377 static int imapaint_pick_face(ViewContext *vc, const int mval[2], uint *r_index, uint totpoly) in imapaint_pick_face() argument 379 if (totpoly == 0) { in imapaint_pick_face() 387 if ((*r_index) == 0 || (*r_index) > (uint)totpoly) { in imapaint_pick_face() 496 uint totpoly = me->totpoly; in paint_sample_color() local 503 if (imapaint_pick_face(&vc, mval, &faceindex, totpoly)) { in paint_sample_color()
|
H A D | sculpt_face_set.c | 83 for (int i = 0; i < mesh->totpoly; i++) { in ED_sculpt_face_sets_find_next_available_id() 98 for (int i = 0; i < mesh->totpoly; i++) { in ED_sculpt_face_sets_initialize_none_to_id() 573 BLI_bitmap *visited_faces = BLI_BITMAP_NEW(mesh->totpoly, "visited faces"); in sculpt_face_sets_init_flood_fill() 574 const int totfaces = mesh->totpoly; in sculpt_face_sets_init_flood_fill() 1053 for (int p = 0; p < mesh->totpoly; p++) { in sculpt_face_set_grow() 1081 for (int p = 0; p < mesh->totpoly; p++) { in sculpt_face_set_shrink()
|
/dports/graphics/blender/blender-2.91.0/source/blender/io/alembic/exporter/ |
H A D | abc_writer_mesh.cc | 209 m_custom_data_config.totpoly = mesh->totpoly; in do_write() 412 const int num_poly = mesh->totpoly; in get_geo_groups() 469 const int num_poly = mesh->totpoly; in get_topology() 543 for (int i = 0, e = mesh->totpoly; i < e; i++, mp++) { in get_loop_normals()
|
/dports/graphics/blender/blender-2.91.0/source/blender/blenlib/ |
H A D | BLI_edgehash.h | 115 #define BLI_EDGEHASH_SIZE_GUESS_FROM_POLYS(totpoly) ((totpoly)*2) argument
|