Home
last modified time | relevance | path

Searched refs:totpoly (Results 26 – 50 of 145) sorted by relevance

123456

/dports/graphics/blender/blender-2.91.0/source/blender/blenkernel/intern/
H A Dmesh_validate.cc89 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 Dpaint.c1574 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 Dsubdiv_ccg_mask.c122 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 Ddata_transfer.c277 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 Dsubdiv_converter_mesh.c113 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 Dsubdiv_ccg_material.c39 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 DBlenderStrokeRenderer.h54 explicit StrokeGroup() : totvert(0), totedge(0), totpoly(0), totloop(0) in StrokeGroup()
61 int totpoly; member
H A DBlenderStrokeRenderer.cpp442 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 Dabc_customdata.h51 int totpoly; member
85 totpoly(0), in CDStreamConfig()
H A Dabc_reader_mesh.cc293 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 Dabc_customdata.cc66 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 Dbmesh_mesh.h153 (CHECK_TYPE_INLINE(me, Mesh *), (me)->totvert), (me)->totedge, (me)->totloop, (me)->totpoly, \
161 (me_a)->totpoly + (me_b)->totpoly, \
H A Dbmesh_mesh_convert.c216 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 DMOD_particleinstance.c221 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 DMOD_boolean.c141 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 Dusd_writer_mesh.cc252 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 DGeometryExporter.cpp302 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 Drna_mesh_api.c108 *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 Dipers.c71 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 Dipers.c71 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 Dsculpt_undo.c399 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 Dpaint_utils.c377 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 Dsculpt_face_set.c83 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 Dabc_writer_mesh.cc209 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 DBLI_edgehash.h115 #define BLI_EDGEHASH_SIZE_GUESS_FROM_POLYS(totpoly) ((totpoly)*2) argument

123456