Blender
V3.3
|
Go to the source code of this file.
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().
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.
BLI_INLINE int ccg_edgebase | ( | int | level | ) |
Definition at line 31 of file CCGSubSurf_inline.h.
References BLI_assert, and CCGSUBSURF_LEVEL_MAX.
Referenced by _edge_getCoVert(), _edge_new(), ccg_edge_getCo(), ccg_edge_getNo(), and ccgSubSurf_getEdgeUserData().
BLI_INLINE int ccg_edgesize | ( | int | level | ) |
Definition at line 16 of file CCGSubSurf_inline.h.
References BLI_assert, and CCGSUBSURF_LEVEL_MAX.
Referenced by ccgSubSurf__calcSubdivLevel(), ccgSubSurf__calcVertNormals(), ccgSubSurf__calcVertNormals_edges_accumulate_cb(), ccgSubSurf_getEdgeLevelSize(), ccgSubSurf_getNumFinalEdges(), ccgSubSurf_getNumFinalVerts(), and ccgSubSurf_stitchFaces().
BLI_INLINE int ccg_face_getEdgeIndex | ( | CCGFace * | f, |
CCGEdge * | e | ||
) |
Definition at line 139 of file CCGSubSurf_inline.h.
References e, FACE_getEdges(), and CCGFace::numVerts.
Referenced by ccg_face_getIFCoEdge(), ccgSubSurf__calcSubdivLevel(), ccgSubSurf__calcVertNormals(), and ccgSubSurf__calcVertNormals_edges_accumulate_cb().
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().
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.
BLI_INLINE void* ccg_face_getIFCo | ( | CCGFace * | f, |
int | lvl, | ||
int | S, | ||
int | x, | ||
int | y, | ||
int | levels, | ||
int | dataSize | ||
) |
Definition at line 108 of file CCGSubSurf_inline.h.
References ccg_gridsize(), ccg_spacing(), FACE_getCenterData(), x, and y.
Referenced by _face_calcIFNo(), ccg_face_getIFCoEdge(), and ccgSubSurf_getFaceGridData().
BLI_INLINE void* ccg_face_getIFCoEdge | ( | CCGFace * | f, |
CCGEdge * | e, | ||
int | f_ed_idx, | ||
int | lvl, | ||
int | eX, | ||
int | eY, | ||
int | levels, | ||
int | dataSize | ||
) |
Definition at line 149 of file CCGSubSurf_inline.h.
References BLI_assert, ccg_face_getEdgeIndex(), ccg_face_getIFCo(), ccg_gridsize(), ccg_spacing(), e, FACE_getVerts(), CCGFace::numVerts, x, and y.
Referenced by _face_getIFNoEdge(), and ccgSubSurf__calcSubdivLevel().
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.
BLI_INLINE int ccg_face_getVertIndex | ( | CCGFace * | f, |
CCGVert * | v | ||
) |
Definition at line 129 of file CCGSubSurf_inline.h.
References FACE_getVerts(), CCGFace::numVerts, and v.
Referenced by ccgSubSurf__calcSubdivLevel(), and ccgSubSurf__calcVertNormals().
BLI_INLINE int ccg_gridsize | ( | int | level | ) |
Definition at line 9 of file CCGSubSurf_inline.h.
References BLI_assert, and CCGSUBSURF_LEVEL_MAX.
Referenced by _face_new(), BKE_ccg_gridsize(), ccg_face_getIECo(), ccg_face_getIENo(), ccg_face_getIFCo(), ccg_face_getIFCoEdge(), ccg_face_getIFNo(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_midpoints_cb(), ccgSubSurf__calcSubdivLevel_verts_copydata_cb(), ccgSubSurf__calcVertNormals(), ccgSubSurf__calcVertNormals_faces_accumulate_cb(), ccgSubSurf__calcVertNormals_faces_finalize_cb(), ccgSubSurf_getFaceUserData(), ccgSubSurf_getGridLevelSize(), ccgSubSurf_getNumFinalEdges(), ccgSubSurf_getNumFinalFaces(), ccgSubSurf_getNumFinalVerts(), ccgSubSurf_stitchFaces(), ccgSubSurf_updateFromFaces(), and ccgSubSurf_updateToFaces().
BLI_INLINE int ccg_spacing | ( | int | high_level, |
int | low_level | ||
) |
Definition at line 23 of file CCGSubSurf_inline.h.
References BLI_assert, and CCGSUBSURF_LEVEL_MAX.
Referenced by ccg_face_getIECo(), ccg_face_getIENo(), ccg_face_getIFCo(), ccg_face_getIFCoEdge(), and ccg_face_getIFNo().
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().
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().
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().
BLI_INLINE byte* FACE_getCenterData | ( | CCGFace * | f | ) |
Definition at line 60 of file CCGSubSurf_inline.h.
References FACE_getEdges().
Referenced by ccg_face_getIECo(), ccg_face_getIENo(), ccg_face_getIFCo(), ccg_face_getIFNo(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), ccgSubSurf__calcSubdivLevel_verts_copydata_cb(), ccgSubSurf__calcVertNormals_faces_finalize_cb(), ccgSubSurf__sync_legacy(), ccgSubSurf_getFaceCenterData(), ccgSubSurf_getFaceUserData(), ccgSubSurf_stitchFaces(), ccgSubSurf_updateFromFaces(), and ccgSubSurf_updateToFaces().
BLI_INLINE CCGEdge** FACE_getEdges | ( | CCGFace * | f | ) |
Definition at line 55 of file CCGSubSurf_inline.h.
References FACE_getVerts(), and CCGFace::numVerts.
Referenced by _face_new(), _face_unlinkMarkAndFree(), ccg_face_getEdgeIndex(), ccgSubSurf__calcSubdivLevel_verts_copydata_cb(), ccgSubSurf__calcVertNormals_faces_accumulate_cb(), ccgSubSurf__sync_legacy(), ccgSubSurf_getFaceEdge(), ccgSubSurf_getFaceEdgeIndex(), ccgSubSurf_stitchFaces(), ccgSubSurf_syncFace(), ccgSubSurf_updateFromFaces(), ccgSubSurf_updateToFaces(), and FACE_getCenterData().
BLI_INLINE CCGVert** FACE_getVerts | ( | CCGFace * | f | ) |
Definition at line 50 of file CCGSubSurf_inline.h.
Referenced by _face_new(), _face_unlinkMarkAndFree(), ccg_face_getIFCoEdge(), ccg_face_getVertIndex(), ccgSubSurf__calcSubdivLevel_verts_copydata_cb(), ccgSubSurf__calcVertNormals_faces_accumulate_cb(), ccgSubSurf__sync_legacy(), ccgSubSurf_getFaceVert(), ccgSubSurf_stitchFaces(), ccgSubSurf_syncFace(), ccgSubSurf_syncVert(), ccgSubSurf_updateFromFaces(), ccgSubSurf_updateToFaces(), and FACE_getEdges().
BLI_INLINE void Normalize | ( | float | no[3] | ) |
Definition at line 182 of file CCGSubSurf_inline.h.
References EPSILON, blender::math::length(), NormZero, and sqrtf.
Referenced by _face_calcIFNo(), ccgSubSurf__calcVertNormals(), and ccgSubSurf__calcVertNormals_faces_finalize_cb().
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().
BLI_INLINE void VertDataAdd | ( | float | a[], |
const float | b[], | ||
const CCGSubSurf * | ss | ||
) |
Definition at line 222 of file CCGSubSurf_inline.h.
References Freestyle::a, usdtokens::b(), CCGSubSurf::meshIFC, and CCGMeshIFC::numLayers.
Referenced by ccgSubSurf__calcSubdivLevel(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), ccgSubSurf__sync_legacy(), and ccgSubSurf_stitchFaces().
BLI_INLINE void VertDataAvg4 | ( | float | v[], |
const float | a[], | ||
const float | b[], | ||
const float | c[], | ||
const float | d[], | ||
const CCGSubSurf * | ss | ||
) |
Definition at line 243 of file CCGSubSurf_inline.h.
References Freestyle::a, usdtokens::b(), Freestyle::c, CCGSubSurf::meshIFC, CCGMeshIFC::numLayers, and v.
Referenced by ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), and ccgSubSurf__calcSubdivLevel_interior_faces_edges_midpoints_cb().
BLI_INLINE void VertDataCopy | ( | float | dst[], |
const float | src[], | ||
const CCGSubSurf * | ss | ||
) |
Definition at line 215 of file CCGSubSurf_inline.h.
References CCGSubSurf::meshIFC, CCGMeshIFC::numLayers, and src.
Referenced by ccgSubSurf__calcSubdivLevel(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), ccgSubSurf__calcSubdivLevel_verts_copydata_cb(), ccgSubSurf__calcVertNormals_faces_finalize_cb(), ccgSubSurf__sync_legacy(), ccgSubSurf_stitchFaces(), ccgSubSurf_syncVert(), ccgSubSurf_updateFromFaces(), and ccgSubSurf_updateToFaces().
BLI_INLINE bool VertDataEqual | ( | const float | a[], |
const float | b[], | ||
const CCGSubSurf * | ss | ||
) |
Definition at line 200 of file CCGSubSurf_inline.h.
References Freestyle::a, usdtokens::b(), CCGSubSurf::meshIFC, and CCGMeshIFC::numLayers.
Referenced by ccgSubSurf_syncVert().
BLI_INLINE void VertDataMulN | ( | float | v[], |
float | f, | ||
const CCGSubSurf * | ss | ||
) |
Definition at line 236 of file CCGSubSurf_inline.h.
References CCGSubSurf::meshIFC, CCGMeshIFC::numLayers, and v.
Referenced by ccgSubSurf__calcSubdivLevel(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), ccgSubSurf__sync_legacy(), and ccgSubSurf_stitchFaces().
BLI_INLINE void VertDataSub | ( | float | a[], |
const float | b[], | ||
const CCGSubSurf * | ss | ||
) |
Definition at line 229 of file CCGSubSurf_inline.h.
References Freestyle::a, usdtokens::b(), CCGSubSurf::meshIFC, and CCGMeshIFC::numLayers.
Referenced by ccgSubSurf__calcSubdivLevel(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), and ccgSubSurf__sync_legacy().
BLI_INLINE void VertDataZero | ( | float | v[], |
const CCGSubSurf * | ss | ||
) |
Definition at line 210 of file CCGSubSurf_inline.h.
References CCGSubSurf::meshIFC, CCGMeshIFC::numLayers, and v.
Referenced by ccgSubSurf__calcSubdivLevel(), ccgSubSurf__calcSubdivLevel_interior_faces_edges_centerpoints_shift_cb(), ccgSubSurf__sync_legacy(), and ccgSubSurf_stitchFaces().