Blender V4.3
multires_reshape_ccg.cc File Reference
#include "multires_reshape.hh"
#include <cstring>
#include "BLI_utildefines.h"
#include "BKE_ccg.hh"
#include "BKE_subdiv_ccg.hh"

Go to the source code of this file.

Functions

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

Function Documentation

◆ multires_reshape_assign_final_coords_from_ccg()

bool multires_reshape_assign_final_coords_from_ccg ( const MultiresReshapeContext * reshape_context,
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 18 of file multires_reshape_ccg.cc.

References BKE_subdiv_ccg_key(), BLI_assert, ReshapeGridElement::displacement, float, GridCoord::grid_index, MultiresReshapeContext::grid_size, SubdivCCG::grids_num, blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), MultiresReshapeContext::level, ReshapeGridElement::mask, SubdivCCG::masks, multires_reshape_grid_element_for_grid_coord(), SubdivCCG::positions, MultiresReshapeContext::reshape, GridCoord::u, GridCoord::v, v, x, and y.

Referenced by multiresModifier_reshapeFromCCG().