Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/multires_reshape_util.cc
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| reshape_context->depsgraph = depsgraph; | reshape_context->depsgraph = depsgraph; | ||||
| reshape_context->object = object; | reshape_context->object = object; | ||||
| reshape_context->mmd = mmd; | reshape_context->mmd = mmd; | ||||
| reshape_context->base_mesh = base_mesh; | reshape_context->base_mesh = base_mesh; | ||||
| reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | ||||
| reshape_context->base_edges = BKE_mesh_edges(base_mesh); | reshape_context->base_edges = BKE_mesh_edges(base_mesh); | ||||
| reshape_context->base_polys = BKE_mesh_polys(base_mesh); | reshape_context->base_polys = BKE_mesh_polys(base_mesh); | ||||
| reshape_context->base_loops = BKE_mesh_loops(base_mesh); | reshape_context->base_corner_verts = base_mesh->corner_verts().data(); | ||||
| reshape_context->base_corner_edges = base_mesh->corner_edges().data(); | |||||
| reshape_context->subdiv = multires_reshape_create_subdiv(nullptr, object, mmd); | reshape_context->subdiv = multires_reshape_create_subdiv(nullptr, object, mmd); | ||||
| reshape_context->need_free_subdiv = true; | reshape_context->need_free_subdiv = true; | ||||
| reshape_context->reshape.level = multires_get_level( | reshape_context->reshape.level = multires_get_level( | ||||
| scene_eval, object, mmd, use_render_params, true); | scene_eval, object, mmd, use_render_params, true); | ||||
| reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | ||||
| reshape_context->reshape.level); | reshape_context->reshape.level); | ||||
| Show All 20 Lines | |||||
| reshape_context->depsgraph = depsgraph; | reshape_context->depsgraph = depsgraph; | ||||
| reshape_context->object = object; | reshape_context->object = object; | ||||
| reshape_context->mmd = mmd; | reshape_context->mmd = mmd; | ||||
| reshape_context->base_mesh = base_mesh; | reshape_context->base_mesh = base_mesh; | ||||
| reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | ||||
| reshape_context->base_edges = BKE_mesh_edges(base_mesh); | reshape_context->base_edges = BKE_mesh_edges(base_mesh); | ||||
| reshape_context->base_polys = BKE_mesh_polys(base_mesh); | reshape_context->base_polys = BKE_mesh_polys(base_mesh); | ||||
| reshape_context->base_loops = BKE_mesh_loops(base_mesh); | reshape_context->base_corner_verts = base_mesh->corner_verts().data(); | ||||
| reshape_context->base_corner_edges = base_mesh->corner_edges().data(); | |||||
| reshape_context->subdiv = multires_reshape_create_subdiv(depsgraph, object, mmd); | reshape_context->subdiv = multires_reshape_create_subdiv(depsgraph, object, mmd); | ||||
| reshape_context->need_free_subdiv = true; | reshape_context->need_free_subdiv = true; | ||||
| reshape_context->reshape.level = multires_get_level( | reshape_context->reshape.level = multires_get_level( | ||||
| scene_eval, object, mmd, use_render_params, true); | scene_eval, object, mmd, use_render_params, true); | ||||
| reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | ||||
| reshape_context->reshape.level); | reshape_context->reshape.level); | ||||
| Show All 17 Lines | |||||
| int top_level) | int top_level) | ||||
| { | { | ||||
| context_zero(reshape_context); | context_zero(reshape_context); | ||||
| reshape_context->base_mesh = base_mesh; | reshape_context->base_mesh = base_mesh; | ||||
| reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | ||||
| reshape_context->base_edges = BKE_mesh_edges(base_mesh); | reshape_context->base_edges = BKE_mesh_edges(base_mesh); | ||||
| reshape_context->base_polys = BKE_mesh_polys(base_mesh); | reshape_context->base_polys = BKE_mesh_polys(base_mesh); | ||||
| reshape_context->base_loops = BKE_mesh_loops(base_mesh); | reshape_context->base_corner_verts = base_mesh->corner_verts().data(); | ||||
| reshape_context->base_corner_edges = base_mesh->corner_edges().data(); | |||||
| reshape_context->subdiv = subdiv_ccg->subdiv; | reshape_context->subdiv = subdiv_ccg->subdiv; | ||||
| reshape_context->need_free_subdiv = false; | reshape_context->need_free_subdiv = false; | ||||
| reshape_context->reshape.level = subdiv_ccg->level; | reshape_context->reshape.level = subdiv_ccg->level; | ||||
| reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | ||||
| reshape_context->reshape.level); | reshape_context->reshape.level); | ||||
| Show All 30 Lines | |||||
| Mesh *base_mesh = (Mesh *)object->data; | Mesh *base_mesh = (Mesh *)object->data; | ||||
| reshape_context->mmd = mmd; | reshape_context->mmd = mmd; | ||||
| reshape_context->base_mesh = base_mesh; | reshape_context->base_mesh = base_mesh; | ||||
| reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | reshape_context->base_positions = BKE_mesh_vert_positions(base_mesh); | ||||
| reshape_context->base_edges = BKE_mesh_edges(base_mesh); | reshape_context->base_edges = BKE_mesh_edges(base_mesh); | ||||
| reshape_context->base_polys = BKE_mesh_polys(base_mesh); | reshape_context->base_polys = BKE_mesh_polys(base_mesh); | ||||
| reshape_context->base_loops = BKE_mesh_loops(base_mesh); | reshape_context->base_corner_verts = base_mesh->corner_verts().data(); | ||||
| reshape_context->base_corner_edges = base_mesh->corner_edges().data(); | |||||
| reshape_context->cd_vertex_crease = (const float *)CustomData_get_layer(&base_mesh->edata, | reshape_context->cd_vertex_crease = (const float *)CustomData_get_layer(&base_mesh->edata, | ||||
| CD_CREASE); | CD_CREASE); | ||||
| reshape_context->subdiv = subdiv; | reshape_context->subdiv = subdiv; | ||||
| reshape_context->need_free_subdiv = false; | reshape_context->need_free_subdiv = false; | ||||
| reshape_context->reshape.level = mmd->totlvl; | reshape_context->reshape.level = mmd->totlvl; | ||||
| reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | reshape_context->reshape.grid_size = BKE_subdiv_grid_size_from_level( | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||