Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/subdiv_foreach.c
| Context not available. | |||||
| ctx->num_subdiv_vertices = coarse_mesh->totvert; | ctx->num_subdiv_vertices = coarse_mesh->totvert; | ||||
| ctx->num_subdiv_edges = | ctx->num_subdiv_edges = | ||||
| coarse_mesh->totedge * (num_subdiv_vertices_per_coarse_edge + 1); | coarse_mesh->totedge * (num_subdiv_vertices_per_coarse_edge + 1); | ||||
| /* Calculate extra vertices and edges createdd by non-loose geometry. */ | /* Calculate extra vertices and edges created by non-loose geometry. */ | ||||
| for (int poly_index = 0; poly_index < coarse_mesh->totpoly; poly_index++) { | for (int poly_index = 0; poly_index < coarse_mesh->totpoly; poly_index++) { | ||||
| const MPoly *coarse_poly = &coarse_mpoly[poly_index]; | const MPoly *coarse_poly = &coarse_mpoly[poly_index]; | ||||
| const int num_ptex_faces_per_poly = | const int num_ptex_faces_per_poly = | ||||
| Context not available. | |||||
| num_polys_per_ptex_get(no_quad_patch_resolution); | num_polys_per_ptex_get(no_quad_patch_resolution); | ||||
| } | } | ||||
| } | } | ||||
| /* Calculate extra vertices createdd by loose edges. */ | /* Calculate extra vertices created by loose edges. */ | ||||
| for (int edge_index = 0; edge_index < coarse_mesh->totedge; edge_index++) { | for (int edge_index = 0; edge_index < coarse_mesh->totedge; edge_index++) { | ||||
| if (!BLI_BITMAP_TEST_BOOL(ctx->coarse_edges_used_map, edge_index)) { | if (!BLI_BITMAP_TEST_BOOL(ctx->coarse_edges_used_map, edge_index)) { | ||||
| ctx->num_subdiv_vertices += num_subdiv_vertices_per_coarse_edge; | ctx->num_subdiv_vertices += num_subdiv_vertices_per_coarse_edge; | ||||
| Context not available. | |||||