Blender V4.3
BKE_ccg.hh File Reference
#include "BLI_assert.h"
#include "BLI_math_vector_types.hh"

Go to the source code of this file.

Classes

struct  CCGKey
 

Functions

void CCG_key (CCGKey *key, const CCGSubSurf *ss, int level)
 
void CCG_key_top_level (CCGKey *key, const CCGSubSurf *ss)
 
blender::float3CCG_elem_co (const CCGKey &, CCGElem *elem)
 
blender::float3CCG_elem_no (const CCGKey &key, CCGElem *elem)
 
floatCCG_elem_mask (const CCGKey &key, CCGElem *elem)
 
CCGElem * CCG_elem_offset (const CCGKey &key, CCGElem *elem, int offset)
 
int CCG_grid_xy_to_index (const int grid_size, const int x, const int y)
 
CCGElem * CCG_grid_elem (const CCGKey &key, CCGElem *elem, int x, int y)
 
blender::float3CCG_grid_elem_co (const CCGKey &key, CCGElem *elem, int x, int y)
 
blender::float3CCG_grid_elem_no (const CCGKey &key, CCGElem *elem, int x, int y)
 
floatCCG_grid_elem_mask (const CCGKey &key, CCGElem *elem, int x, int y)
 
blender::float3CCG_elem_offset_co (const CCGKey &key, CCGElem *elem, int offset)
 

Function Documentation

◆ CCG_elem_co()

blender::float3 & CCG_elem_co ( const CCGKey & ,
CCGElem * elem )
inline

Definition at line 55 of file BKE_ccg.hh.

Referenced by CCG_elem_offset_co(), CCG_grid_elem_co(), and ccgDM_to_MVert().

◆ CCG_elem_mask()

float & CCG_elem_mask ( const CCGKey & key,
CCGElem * elem )
inline

Definition at line 66 of file BKE_ccg.hh.

References BLI_assert, CCGKey::has_mask, and CCGKey::mask_offset.

Referenced by CCG_grid_elem_mask().

◆ CCG_elem_no()

blender::float3 & CCG_elem_no ( const CCGKey & key,
CCGElem * elem )
inline

Definition at line 60 of file BKE_ccg.hh.

References BLI_assert, CCGKey::has_normals, and CCGKey::normal_offset.

Referenced by CCG_grid_elem_no().

◆ CCG_elem_offset()

CCGElem * CCG_elem_offset ( const CCGKey & key,
CCGElem * elem,
int offset )
inline

Definition at line 72 of file BKE_ccg.hh.

References CCGKey::elem_size.

Referenced by CCG_elem_offset_co(), and CCG_grid_elem().

◆ CCG_elem_offset_co()

blender::float3 & CCG_elem_offset_co ( const CCGKey & key,
CCGElem * elem,
int offset )
inline

Definition at line 103 of file BKE_ccg.hh.

References CCG_elem_co(), and CCG_elem_offset().

Referenced by multires_copy_dm_grid(), and multires_modifier_update_mdisps().

◆ CCG_grid_elem()

CCGElem * CCG_grid_elem ( const CCGKey & key,
CCGElem * elem,
int x,
int y )
inline

◆ CCG_grid_elem_co()

blender::float3 & CCG_grid_elem_co ( const CCGKey & key,
CCGElem * elem,
int x,
int y )
inline

Definition at line 88 of file BKE_ccg.hh.

References CCG_elem_co(), and CCG_grid_elem().

Referenced by grid_tangent(), interp_bilinear_grid(), and multires_disp_run_cb().

◆ CCG_grid_elem_mask()

float & CCG_grid_elem_mask ( const CCGKey & key,
CCGElem * elem,
int x,
int y )
inline

Definition at line 98 of file BKE_ccg.hh.

References CCG_elem_mask(), and CCG_grid_elem().

Referenced by multires_disp_run_cb().

◆ CCG_grid_elem_no()

blender::float3 & CCG_grid_elem_no ( const CCGKey & key,
CCGElem * elem,
int x,
int y )
inline

Definition at line 93 of file BKE_ccg.hh.

References CCG_elem_no(), and CCG_grid_elem().

Referenced by grid_tangent_matrix(), and interp_bilinear_grid().

◆ CCG_grid_xy_to_index()

◆ CCG_key()

◆ CCG_key_top_level()

void CCG_key_top_level ( CCGKey * key,
const CCGSubSurf * ss )

Definition at line 1577 of file CCGSubSurf.cc.

References CCG_key(), and ccgSubSurf_getSubdivisionLevels().

Referenced by ccgDM_copyFinalVertArray(), and ccgDM_getGridKey().