Blender V4.3
multires_reshape_smooth.cc File Reference
#include "multires_reshape.hh"
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "BLI_function_ref.hh"
#include "BLI_math_matrix.h"
#include "BLI_math_vector.h"
#include "BLI_task.hh"
#include "BLI_utildefines.h"
#include "BKE_customdata.hh"
#include "BKE_mesh.hh"
#include "BKE_multires.hh"
#include "BKE_subdiv.hh"
#include "BKE_subdiv_eval.hh"
#include "BKE_subdiv_foreach.hh"
#include "BKE_subdiv_mesh.hh"
#include "opensubdiv_converter_capi.hh"
#include "opensubdiv_evaluator_capi.hh"
#include "atomic_ops.h"
#include "subdiv_converter.hh"

Go to the source code of this file.

Functions

Entry point
void multires_reshape_smooth_object_grids_with_details (const MultiresReshapeContext *reshape_context)
 
void multires_reshape_smooth_object_grids (const MultiresReshapeContext *reshape_context, const eMultiresSubdivideModeType mode)
 

Function Documentation

◆ multires_reshape_smooth_object_grids()

void multires_reshape_smooth_object_grids ( const MultiresReshapeContext * reshape_context,
enum eMultiresSubdivideModeType mode )

Operates on a displacement grids (CD_MDISPS) which contains object space-coordinates stored for the reshape level.

Makes it so surface on top level looks smooth. Details are not preserved

Definition at line 1471 of file multires_reshape_smooth.cc.

References MultiresReshapeContext::level, MultiresReshapeContext::reshape, MultiresReshapeContext::top, and UNUSED_VARS.

Referenced by multiresModifier_subdivide_to_level().

◆ multires_reshape_smooth_object_grids_with_details()

void multires_reshape_smooth_object_grids_with_details ( const MultiresReshapeContext * reshape_context)

Operates on a displacement grids (CD_MDISPS) which contains object space coordinates stored for the reshape level.

The result is grids which are defining mesh with a smooth surface and details starting from reshape level up to top level added back from original displacement grids.

Definition at line 1435 of file multires_reshape_smooth.cc.

References blender::bke::subdiv::Settings::is_simple, MultiresReshapeContext::level, MULTIRES_SUBDIVIDE_CATMULL_CLARK, MULTIRES_SUBDIVIDE_SIMPLE, MultiresReshapeContext::reshape, blender::bke::subdiv::Subdiv::settings, MultiresReshapeContext::subdiv, MultiresReshapeContext::top, and UNUSED_VARS.

Referenced by multiresModifier_reshapeFromCCG(), multiresModifier_reshapeFromVertcos(), and multiresModifier_subdivide_to_level().