Blender V4.5
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)
 
float & CCG_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)
 
float & CCG_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, and key.

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, and key.

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 key.

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(), CCG_elem_offset(), and key.

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

Definition at line 82 of file BKE_ccg.hh.

References CCG_elem_offset(), CCG_grid_xy_to_index(), key, x, and y.

Referenced by CCG_grid_elem_co(), CCG_grid_elem_mask(), and CCG_grid_elem_no().

◆ 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(), CCG_grid_elem(), key, x, and y.

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(), CCG_grid_elem(), key, x, and y.

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(), CCG_grid_elem(), key, x, and y.

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 1571 of file CCGSubSurf.cc.

References CCG_key(), ccgSubSurf_getSubdivisionLevels(), and key.

Referenced by ccgDM_copyFinalVertArray(), and ccgDM_getGridKey().