Blender  V3.3
Functions
CCGSubSurf_inline.h File Reference

Go to the source code of this file.

Functions

BLI_INLINE int ccg_gridsize (int level)
 
BLI_INLINE int ccg_edgesize (int level)
 
BLI_INLINE int ccg_spacing (int high_level, int low_level)
 
BLI_INLINE int ccg_edgebase (int level)
 
BLI_INLINE byteVERT_getLevelData (CCGVert *v)
 
BLI_INLINE byteEDGE_getLevelData (CCGEdge *e)
 
BLI_INLINE CCGVert ** FACE_getVerts (CCGFace *f)
 
BLI_INLINE CCGEdge ** FACE_getEdges (CCGFace *f)
 
BLI_INLINE byteFACE_getCenterData (CCGFace *f)
 
BLI_INLINE voidccg_vert_getCo (CCGVert *v, int lvl, int dataSize)
 
BLI_INLINE floatccg_vert_getNo (CCGVert *v, int lvl, int dataSize, int normalDataOffset)
 
BLI_INLINE voidccg_edge_getCo (CCGEdge *e, int lvl, int x, int dataSize)
 
BLI_INLINE floatccg_edge_getNo (CCGEdge *e, int lvl, int x, int dataSize, int normalDataOffset)
 
BLI_INLINE voidccg_face_getIECo (CCGFace *f, int lvl, int S, int x, int levels, int dataSize)
 
BLI_INLINE voidccg_face_getIENo (CCGFace *f, int lvl, int S, int x, int levels, int dataSize, int normalDataOffset)
 
BLI_INLINE voidccg_face_getIFCo (CCGFace *f, int lvl, int S, int x, int y, int levels, int dataSize)
 
BLI_INLINE floatccg_face_getIFNo (CCGFace *f, int lvl, int S, int x, int y, int levels, int dataSize, int normalDataOffset)
 
BLI_INLINE int ccg_face_getVertIndex (CCGFace *f, CCGVert *v)
 
BLI_INLINE int ccg_face_getEdgeIndex (CCGFace *f, CCGEdge *e)
 
BLI_INLINE voidccg_face_getIFCoEdge (CCGFace *f, CCGEdge *e, int f_ed_idx, int lvl, int eX, int eY, int levels, int dataSize)
 
BLI_INLINE void Normalize (float no[3])
 
BLI_INLINE bool VertDataEqual (const float a[], const float b[], const CCGSubSurf *ss)
 
BLI_INLINE void VertDataZero (float v[], const CCGSubSurf *ss)
 
BLI_INLINE void VertDataCopy (float dst[], const float src[], const CCGSubSurf *ss)
 
BLI_INLINE void VertDataAdd (float a[], const float b[], const CCGSubSurf *ss)
 
BLI_INLINE void VertDataSub (float a[], const float b[], const CCGSubSurf *ss)
 
BLI_INLINE void VertDataMulN (float v[], float f, const CCGSubSurf *ss)
 
BLI_INLINE void VertDataAvg4 (float v[], const float a[], const float b[], const float c[], const float d[], const CCGSubSurf *ss)
 

Function Documentation

◆ ccg_edge_getCo()

BLI_INLINE void* ccg_edge_getCo ( CCGEdge e,
int  lvl,
int  x,
int  dataSize 
)

Definition at line 77 of file CCGSubSurf_inline.h.

References ccg_edgebase(), e, EDGE_getLevelData(), and x.

Referenced by ccgSubSurf_getEdgeLevelData().

◆ ccg_edge_getNo()

BLI_INLINE float* ccg_edge_getNo ( CCGEdge e,
int  lvl,
int  x,
int  dataSize,
int  normalDataOffset 
)

Definition at line 83 of file CCGSubSurf_inline.h.

References ccg_edgebase(), e, EDGE_getLevelData(), and x.

◆ ccg_edgebase()

BLI_INLINE int ccg_edgebase ( int  level)

◆ ccg_edgesize()

BLI_INLINE int ccg_edgesize ( int  level)

◆ ccg_face_getEdgeIndex()

BLI_INLINE int ccg_face_getEdgeIndex ( CCGFace f,
CCGEdge e 
)

◆ ccg_face_getIECo()

BLI_INLINE void* ccg_face_getIECo ( CCGFace f,
int  lvl,
int  S,
int  x,
int  levels,
int  dataSize 
)

Definition at line 89 of file CCGSubSurf_inline.h.

References ccg_gridsize(), ccg_spacing(), FACE_getCenterData(), and x.

Referenced by ccgSubSurf_getFaceGridEdgeData().

◆ ccg_face_getIENo()

BLI_INLINE void* ccg_face_getIENo ( CCGFace f,
int  lvl,
int  S,
int  x,
int  levels,
int  dataSize,
int  normalDataOffset 
)

Definition at line 98 of file CCGSubSurf_inline.h.

References ccg_gridsize(), ccg_spacing(), FACE_getCenterData(), and x.

◆ ccg_face_getIFCo()

BLI_INLINE void* ccg_face_getIFCo ( CCGFace f,
int  lvl,
int  S,
int  x,
int  y,
int  levels,
int  dataSize 
)

◆ ccg_face_getIFCoEdge()

BLI_INLINE void* ccg_face_getIFCoEdge ( CCGFace f,
CCGEdge e,
int  f_ed_idx,
int  lvl,
int  eX,
int  eY,
int  levels,
int  dataSize 
)

◆ ccg_face_getIFNo()

BLI_INLINE float* ccg_face_getIFNo ( CCGFace f,
int  lvl,
int  S,
int  x,
int  y,
int  levels,
int  dataSize,
int  normalDataOffset 
)

Definition at line 118 of file CCGSubSurf_inline.h.

References ccg_gridsize(), ccg_spacing(), FACE_getCenterData(), x, and y.

◆ ccg_face_getVertIndex()

BLI_INLINE int ccg_face_getVertIndex ( CCGFace f,
CCGVert v 
)

◆ ccg_gridsize()

BLI_INLINE int ccg_gridsize ( int  level)

◆ ccg_spacing()

BLI_INLINE int ccg_spacing ( int  high_level,
int  low_level 
)

◆ ccg_vert_getCo()

BLI_INLINE void* ccg_vert_getCo ( CCGVert v,
int  lvl,
int  dataSize 
)

Definition at line 67 of file CCGSubSurf_inline.h.

References v, and VERT_getLevelData().

Referenced by ccgSubSurf_getVertLevelData(), and ccgSubSurf_syncVert().

◆ ccg_vert_getNo()

BLI_INLINE float* ccg_vert_getNo ( CCGVert v,
int  lvl,
int  dataSize,
int  normalDataOffset 
)

Definition at line 72 of file CCGSubSurf_inline.h.

References v, and VERT_getLevelData().

◆ EDGE_getLevelData()

BLI_INLINE byte* EDGE_getLevelData ( CCGEdge e)

Definition at line 45 of file CCGSubSurf_inline.h.

References e.

Referenced by _edge_getCoVert(), ccg_edge_getCo(), ccg_edge_getNo(), and ccgSubSurf_getEdgeUserData().

◆ FACE_getCenterData()

BLI_INLINE byte* FACE_getCenterData ( CCGFace f)

◆ FACE_getEdges()

BLI_INLINE CCGEdge** FACE_getEdges ( CCGFace f)

◆ FACE_getVerts()

BLI_INLINE CCGVert** FACE_getVerts ( CCGFace f)

◆ Normalize()

BLI_INLINE void Normalize ( float  no[3])

◆ VERT_getLevelData()

BLI_INLINE byte* VERT_getLevelData ( CCGVert v)

Definition at line 40 of file CCGSubSurf_inline.h.

References v.

Referenced by ccg_vert_getCo(), ccg_vert_getNo(), and ccgSubSurf_getVertUserData().

◆ VertDataAdd()

BLI_INLINE void VertDataAdd ( float  a[],
const float  b[],
const CCGSubSurf ss 
)

◆ VertDataAvg4()

BLI_INLINE void VertDataAvg4 ( float  v[],
const float  a[],
const float  b[],
const float  c[],
const float  d[],
const CCGSubSurf ss 
)

◆ VertDataCopy()

BLI_INLINE void VertDataCopy ( float  dst[],
const float  src[],
const CCGSubSurf ss 
)

◆ VertDataEqual()

BLI_INLINE bool VertDataEqual ( const float  a[],
const float  b[],
const CCGSubSurf ss 
)

◆ VertDataMulN()

BLI_INLINE void VertDataMulN ( float  v[],
float  f,
const CCGSubSurf ss 
)

◆ VertDataSub()

BLI_INLINE void VertDataSub ( float  a[],
const float  b[],
const CCGSubSurf ss 
)

◆ VertDataZero()

BLI_INLINE void VertDataZero ( float  v[],
const CCGSubSurf ss 
)