Blender V5.0
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

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)
int CCG_grid_size (const int level)
int CCG_grid_factor (int low_level, int high_level)

Function Documentation

◆ CCG_elem_co()

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

Definition at line 51 of file BKE_ccg.hh.

Referenced by CCG_elem_offset_co(), and CCG_grid_elem_co().

◆ CCG_elem_mask()

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

Definition at line 62 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 56 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 68 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 99 of file BKE_ccg.hh.

References CCG_elem_co(), and CCG_elem_offset().

◆ 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 84 of file BKE_ccg.hh.

References CCG_elem_co(), CCG_grid_elem(), x, and y.

◆ CCG_grid_elem_mask()

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

Definition at line 94 of file BKE_ccg.hh.

References CCG_elem_mask(), CCG_grid_elem(), x, and y.

◆ CCG_grid_elem_no()

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

Definition at line 89 of file BKE_ccg.hh.

References CCG_elem_no(), CCG_grid_elem(), x, and y.

◆ CCG_grid_factor()

int CCG_grid_factor ( int low_level,
int high_level )
inline

Definition at line 110 of file BKE_ccg.hh.

References BLI_assert.

Referenced by multires_mdisps_downsample_hidden(), and paint_grid_paint_mask().

◆ CCG_grid_size()

◆ CCG_grid_xy_to_index()