|
Blender
V2.93
|
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 byte * | VERT_getLevelData (CCGVert *v) |
| BLI_INLINE byte * | EDGE_getLevelData (CCGEdge *e) |
| BLI_INLINE CCGVert ** | FACE_getVerts (CCGFace *f) |
| BLI_INLINE CCGEdge ** | FACE_getEdges (CCGFace *f) |
| BLI_INLINE byte * | FACE_getCenterData (CCGFace *f) |
| BLI_INLINE void * | ccg_vert_getCo (CCGVert *v, int lvl, int dataSize) |
| BLI_INLINE float * | ccg_vert_getNo (CCGVert *v, int lvl, int dataSize, int normalDataOffset) |
| BLI_INLINE void * | ccg_edge_getCo (CCGEdge *e, int lvl, int x, int dataSize) |
| BLI_INLINE float * | ccg_edge_getNo (CCGEdge *e, int lvl, int x, int dataSize, int normalDataOffset) |
| BLI_INLINE void * | ccg_face_getIECo (CCGFace *f, int lvl, int S, int x, int levels, int dataSize) |
| BLI_INLINE void * | ccg_face_getIENo (CCGFace *f, int lvl, int S, int x, int levels, int dataSize, int normalDataOffset) |
| BLI_INLINE void * | ccg_face_getIFCo (CCGFace *f, int lvl, int S, int x, int y, int levels, int dataSize) |
| BLI_INLINE float * | ccg_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 void * | ccg_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) |
| BLI_INLINE void* ccg_edge_getCo | ( | CCGEdge * | e, |
| int | lvl, | ||
| int | x, | ||
| int | dataSize | ||
| ) |
Definition at line 91 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 97 of file CCGSubSurf_inline.h.
References ccg_edgebase(), e, EDGE_getLevelData(), and x.
| BLI_INLINE int ccg_edgebase | ( | int | level | ) |
Definition at line 45 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 30 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 153 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 103 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 112 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 122 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 163 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 132 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 143 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 23 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 37 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 81 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 86 of file CCGSubSurf_inline.h.
References v, and VERT_getLevelData().
| BLI_INLINE byte* EDGE_getLevelData | ( | CCGEdge * | e | ) |
Definition at line 59 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 74 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 69 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 64 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] | ) |
| BLI_INLINE byte* VERT_getLevelData | ( | CCGVert * | v | ) |
Definition at line 54 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 236 of file CCGSubSurf_inline.h.
References Freestyle::a, 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 257 of file CCGSubSurf_inline.h.
References Freestyle::a, 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 229 of file CCGSubSurf_inline.h.
References CCGSubSurf::meshIFC, and CCGMeshIFC::numLayers.
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 214 of file CCGSubSurf_inline.h.
References Freestyle::a, CCGSubSurf::meshIFC, and CCGMeshIFC::numLayers.
Referenced by ccgSubSurf_syncVert().
| BLI_INLINE void VertDataMulN | ( | float | v[], |
| float | f, | ||
| const CCGSubSurf * | ss | ||
| ) |
Definition at line 250 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 243 of file CCGSubSurf_inline.h.
References Freestyle::a, 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 224 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().