25 const float reshape_grid_size_1_inv = 1.0f / (
float(reshape_grid_size) - 1.0f);
31 for (
int grid_index = 0; grid_index < num_grids; ++grid_index) {
32 for (
int y = 0; y < reshape_grid_size; ++
y) {
33 const float v =
float(y) * reshape_grid_size_1_inv;
34 for (
int x = 0; x < reshape_grid_size; ++
x) {
35 const float u =
float(x) * reshape_grid_size_1_inv;
36 const int vert = bke::ccg::grid_xy_to_vert(reshape_level_key, grid_index, x, y);
44 reshape_context, &grid_coord);
47 memcpy(grid_element.
displacement, positions[vert],
sizeof(
float[3]));
72 *grid_element.
mask = masks[vert];
struct MultiresReshapeContext::@91 reshape