Blender  V3.3
Functions
multires_reshape_ccg.c File Reference
#include "multires_reshape.h"
#include <string.h>
#include "BLI_utildefines.h"
#include "BKE_ccg.h"
#include "BKE_subdiv_ccg.h"

Go to the source code of this file.

Functions

bool multires_reshape_assign_final_coords_from_ccg (const MultiresReshapeContext *reshape_context, struct SubdivCCG *subdiv_ccg)
 

Function Documentation

◆ multires_reshape_assign_final_coords_from_ccg()

bool multires_reshape_assign_final_coords_from_ccg ( const MultiresReshapeContext reshape_context,
struct SubdivCCG subdiv_ccg 
)

Store final object-space coordinates in the displacement grids. The reason why displacement grids are used for storage is based on memory footprint optimization.

Note
Displacement grids to be at least at a reshape level.
Returns
truth if all coordinates have been updated.

Definition at line 17 of file multires_reshape_ccg.c.

References BKE_subdiv_ccg_key(), BLI_assert, CCG_grid_elem_co(), CCG_grid_elem_mask(), ReshapeGridElement::displacement, float(), GridCoord::grid_index, MultiresReshapeContext::grid_size, SubdivCCG::grids, CCGKey::has_mask, MultiresReshapeContext::level, ReshapeGridElement::mask, multires_reshape_grid_element_for_grid_coord(), NULL, SubdivCCG::num_grids, MultiresReshapeContext::reshape, GridCoord::u, GridCoord::v, v, x, and y.

Referenced by multiresModifier_reshapeFromCCG().