Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_extract_mesh_render_data.cc
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| CustomData_get_layer_for_write(&mr->me->ldata, CD_CUSTOMLOOPNORMAL, mr->me->totloop)); | CustomData_get_layer_for_write(&mr->me->ldata, CD_CUSTOMLOOPNORMAL, mr->me->totloop)); | ||||
| const bool *sharp_edges = static_cast<const bool *>( | const bool *sharp_edges = static_cast<const bool *>( | ||||
| CustomData_get_layer_named(&mr->me->edata, CD_PROP_BOOL, "sharp_edge")); | CustomData_get_layer_named(&mr->me->edata, CD_PROP_BOOL, "sharp_edge")); | ||||
| BKE_mesh_normals_loop_split(reinterpret_cast<const float(*)[3]>(mr->vert_positions), | BKE_mesh_normals_loop_split(reinterpret_cast<const float(*)[3]>(mr->vert_positions), | ||||
| mr->vert_normals, | mr->vert_normals, | ||||
| mr->vert_len, | mr->vert_len, | ||||
| mr->medge, | mr->medge, | ||||
| mr->edge_len, | mr->edge_len, | ||||
| mr->mloop, | mr->corner_verts, | ||||
| mr->corner_edges, | |||||
| mr->loop_normals, | mr->loop_normals, | ||||
| mr->loop_len, | mr->loop_len, | ||||
| mr->mpoly, | mr->mpoly, | ||||
| mr->poly_normals, | mr->poly_normals, | ||||
| mr->poly_len, | mr->poly_len, | ||||
| is_auto_smooth, | is_auto_smooth, | ||||
| split_angle, | split_angle, | ||||
| sharp_edges, | sharp_edges, | ||||
| ▲ Show 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | |||||
| mr->edge_len = mr->me->totedge; | mr->edge_len = mr->me->totedge; | ||||
| mr->loop_len = mr->me->totloop; | mr->loop_len = mr->me->totloop; | ||||
| mr->poly_len = mr->me->totpoly; | mr->poly_len = mr->me->totpoly; | ||||
| mr->tri_len = poly_to_tri_count(mr->poly_len, mr->loop_len); | mr->tri_len = poly_to_tri_count(mr->poly_len, mr->loop_len); | ||||
| mr->vert_positions = mr->me->vert_positions().data(); | mr->vert_positions = mr->me->vert_positions().data(); | ||||
| mr->medge = BKE_mesh_edges(mr->me); | mr->medge = BKE_mesh_edges(mr->me); | ||||
| mr->mpoly = BKE_mesh_polys(mr->me); | mr->mpoly = BKE_mesh_polys(mr->me); | ||||
| mr->mloop = BKE_mesh_loops(mr->me); | mr->corner_verts = mr->me->corner_verts().data(); | ||||
| mr->corner_edges = mr->me->corner_edges().data(); | |||||
| mr->v_origindex = static_cast<const int *>(CustomData_get_layer(&mr->me->vdata, CD_ORIGINDEX)); | mr->v_origindex = static_cast<const int *>(CustomData_get_layer(&mr->me->vdata, CD_ORIGINDEX)); | ||||
| mr->e_origindex = static_cast<const int *>(CustomData_get_layer(&mr->me->edata, CD_ORIGINDEX)); | mr->e_origindex = static_cast<const int *>(CustomData_get_layer(&mr->me->edata, CD_ORIGINDEX)); | ||||
| mr->p_origindex = static_cast<const int *>(CustomData_get_layer(&mr->me->pdata, CD_ORIGINDEX)); | mr->p_origindex = static_cast<const int *>(CustomData_get_layer(&mr->me->pdata, CD_ORIGINDEX)); | ||||
| mr->material_indices = static_cast<const int *>( | mr->material_indices = static_cast<const int *>( | ||||
| CustomData_get_layer_named(&me->pdata, CD_PROP_INT32, "material_index")); | CustomData_get_layer_named(&me->pdata, CD_PROP_INT32, "material_index")); | ||||
| ▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines | |||||