Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/multires_reshape_smooth.c
| Show First 20 Lines • Show All 747 Lines • ▼ Show 20 Lines | static void foreach_poly(const SubdivForeachContext *foreach_context, | ||||
| Face *face = &reshape_smooth_context->geometry.faces[subdiv_poly_index]; | Face *face = &reshape_smooth_context->geometry.faces[subdiv_poly_index]; | ||||
| face->start_corner_index = start_loop_index; | face->start_corner_index = start_loop_index; | ||||
| face->num_corners = num_loops; | face->num_corners = num_loops; | ||||
| } | } | ||||
| static void foreach_vertex_of_loose_edge(const struct SubdivForeachContext *foreach_context, | static void foreach_vertex_of_loose_edge(const struct SubdivForeachContext *foreach_context, | ||||
| void *UNUSED(tls), | void *UNUSED(tls), | ||||
| const int UNUSED(coarse_edge_index), | const int UNUSED(coarse_edge_index), | ||||
| const int UNUSED(u_index), | |||||
| const float UNUSED(u), | const float UNUSED(u), | ||||
| const int vertex_index) | const int vertex_index) | ||||
| { | { | ||||
| const MultiresReshapeSmoothContext *reshape_smooth_context = foreach_context->user_data; | const MultiresReshapeSmoothContext *reshape_smooth_context = foreach_context->user_data; | ||||
| Vertex *vertex = &reshape_smooth_context->geometry.vertices[vertex_index]; | Vertex *vertex = &reshape_smooth_context->geometry.vertices[vertex_index]; | ||||
| if (vertex->num_grid_coords != 0) { | if (vertex->num_grid_coords != 0) { | ||||
| vertex->is_infinite_sharp = true; | vertex->is_infinite_sharp = true; | ||||
| ▲ Show 20 Lines • Show All 734 Lines • Show Last 20 Lines | |||||