Blender V2.61 - r43446
|
Go to the source code of this file.
Definition in file CCGSubSurf.h.
#define CCG_OMP_LIMIT 1000000 |
Definition at line 45 of file CCGSubSurf.h.
typedef void* CCGAllocatorHDL |
Definition at line 24 of file CCGSubSurf.h.
typedef struct _CCGAllocatorIFC CCGAllocatorIFC |
Definition at line 26 of file CCGSubSurf.h.
Definition at line 12 of file CCGSubSurf.h.
typedef void* CCGEdgeHDL |
Definition at line 8 of file CCGSubSurf.h.
typedef struct _CCGEdgeIterator CCGEdgeIterator |
Definition at line 145 of file CCGSubSurf.h.
Definition at line 13 of file CCGSubSurf.h.
typedef void* CCGFaceHDL |
Definition at line 9 of file CCGSubSurf.h.
typedef struct _CCGFaceIterator CCGFaceIterator |
Definition at line 146 of file CCGSubSurf.h.
typedef void* CCGMeshHDL |
Definition at line 6 of file CCGSubSurf.h.
typedef struct _CCGMeshIFC CCGMeshIFC |
Definition at line 15 of file CCGSubSurf.h.
typedef struct _CCGSubSurf CCGSubSurf |
Definition at line 49 of file CCGSubSurf.h.
Definition at line 11 of file CCGSubSurf.h.
typedef void* CCGVertHDL |
Definition at line 7 of file CCGSubSurf.h.
typedef struct _CCGVertIterator CCGVertIterator |
Definition at line 144 of file CCGSubSurf.h.
enum CCGError |
Definition at line 36 of file CCGSubSurf.h.
void ccgEdgeIterator_free | ( | CCGEdgeIterator * | ei | ) |
Definition at line 2720 of file CCGSubSurf.c.
References _ehashIterator_free().
Referenced by ccgDM_drawMappedEdges(), ccgDM_drawMappedEdgesInterp(), ccgDM_drawVerts(), ccgDM_foreachMappedEdge(), and ccgDM_getMinMax().
CCGEdge* ccgEdgeIterator_getCurrent | ( | CCGEdgeIterator * | ei | ) |
Definition at line 2711 of file CCGSubSurf.c.
References _ehashIterator_getCurrent().
Referenced by ccgDM_drawMappedEdges(), ccgDM_drawMappedEdgesInterp(), ccgDM_drawVerts(), ccgDM_foreachMappedEdge(), ccgDM_getMinMax(), ccgdm_getVertCos(), and getCCGDerivedMesh().
int ccgEdgeIterator_isStopped | ( | CCGEdgeIterator * | ei | ) |
Definition at line 2714 of file CCGSubSurf.c.
References _ehashIterator_isStopped().
Referenced by ccgDM_drawMappedEdges(), ccgDM_drawMappedEdgesInterp(), ccgDM_drawVerts(), ccgDM_foreachMappedEdge(), ccgDM_getMinMax(), ccgdm_getVertCos(), and getCCGDerivedMesh().
void ccgEdgeIterator_next | ( | CCGEdgeIterator * | ei | ) |
Definition at line 2717 of file CCGSubSurf.c.
References _ehashIterator_next().
Referenced by ccgDM_drawMappedEdges(), ccgDM_drawMappedEdgesInterp(), ccgDM_drawVerts(), ccgDM_foreachMappedEdge(), ccgDM_getMinMax(), ccgdm_getVertCos(), and getCCGDerivedMesh().
void ccgFaceIterator_free | ( | CCGFaceIterator * | fi | ) |
Definition at line 2733 of file CCGSubSurf.c.
References _ehashIterator_free().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedFaceCenter(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and set_subsurf_uv().
CCGFace* ccgFaceIterator_getCurrent | ( | CCGFaceIterator * | fi | ) |
Definition at line 2724 of file CCGSubSurf.c.
References _ehashIterator_getCurrent().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedFaceCenter(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and set_subsurf_uv().
int ccgFaceIterator_isStopped | ( | CCGFaceIterator * | fi | ) |
Definition at line 2727 of file CCGSubSurf.c.
References _ehashIterator_isStopped().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedFaceCenter(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and set_subsurf_uv().
void ccgFaceIterator_next | ( | CCGFaceIterator * | fi | ) |
Definition at line 2730 of file CCGSubSurf.c.
References _ehashIterator_next().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedFaceCenter(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and set_subsurf_uv().
void ccgSubSurf_free | ( | CCGSubSurf * | ss | ) |
Definition at line 694 of file CCGSubSurf.c.
References _edge_free(), _ehash_free(), _face_free(), _vert_free(), _CCGSubSurf::allocator, _CCGSubSurf::allocatorIFC, CCGSUBSURF_free, _CCGSubSurf::defaultEdgeUserData, _CCGSubSurf::eMap, _CCGSubSurf::fMap, MEM_freeN(), _CCGSubSurf::oldEMap, _CCGSubSurf::oldFMap, _CCGSubSurf::oldVMap, _CCGSubSurf::q, _CCGSubSurf::r, _CCGAllocatorIFC::release, _CCGSubSurf::syncState, _CCGSubSurf::tempEdges, _CCGSubSurf::tempVerts, and _CCGSubSurf::vMap.
Referenced by _getSubSurf(), ccgDM_release(), freeData(), set_subsurf_uv(), subsurf_calculate_limit_positions(), and subsurf_make_derived_from_derived().
void ccgSubSurf_getAllowEdgeCreation | ( | CCGSubSurf * | ss, |
int * | allowEdgeCreation_r, | ||
float * | defaultCreaseValue_r, | ||
void * | defaultUserData_r | ||
) |
Definition at line 739 of file CCGSubSurf.c.
References _CCGSubSurf::allowEdgeCreation, _CCGSubSurf::defaultCreaseValue, _CCGSubSurf::defaultEdgeUserData, _CCGMeshIFC::edgeUserSize, and _CCGSubSurf::meshIFC.
CCGEdge* ccgSubSurf_getEdge | ( | CCGSubSurf * | ss, |
CCGEdgeHDL | e | ||
) |
Definition at line 2500 of file CCGSubSurf.c.
References _ehash_lookup(), and _CCGSubSurf::eMap.
int ccgSubSurf_getEdgeAge | ( | CCGSubSurf * | ss, |
CCGEdge * | e | ||
) |
Definition at line 2583 of file CCGSubSurf.c.
References ccgSubSurf_getEdgeUserData(), _CCGSubSurf::currentAge, _CCGSubSurf::edgeUserAgeOffset, and _CCGSubSurf::useAgeCounts.
Referenced by ccgDM_drawEdges(), ccgDM_drawMappedEdges(), and ccgDM_drawMappedEdgesInterp().
float ccgSubSurf_getEdgeCrease | ( | CCGEdge * | e | ) |
Definition at line 2623 of file CCGSubSurf.c.
References _CCGEdge::crease.
Referenced by ss_sync_from_uv().
void* ccgSubSurf_getEdgeData | ( | CCGSubSurf * | ss, |
CCGEdge * | e, | ||
int | x | ||
) |
Definition at line 2613 of file CCGSubSurf.c.
References ccgSubSurf_getEdgeLevelData(), and _CCGSubSurf::subdivLevels.
Referenced by ccgDM_copyFinalVertArray(), ccgDM_drawVerts(), ccgDM_getFinalVert(), ccgdm_getVertCos(), ccgSubSurf_getEdgeDataArray(), multires_mvert_to_ss(), and subsurf_calculate_limit_positions().
void* ccgSubSurf_getEdgeDataArray | ( | CCGSubSurf * | ss, |
CCGEdge * | e | ||
) |
Definition at line 2610 of file CCGSubSurf.c.
References ccgSubSurf_getEdgeData().
Referenced by ccgDM_drawEdges(), ccgDM_drawLooseEdges(), ccgDM_drawMappedEdges(), ccgDM_drawMappedEdgesInterp(), ccgDM_foreachMappedEdge(), and ccgDM_getMinMax().
CCGEdgeHDL ccgSubSurf_getEdgeEdgeHandle | ( | CCGEdge * | e | ) |
Definition at line 2580 of file CCGSubSurf.c.
References _CCGEdge::eHDL.
Referenced by ccgDM_copyFinalEdgeArray(), ccgdm_getVertCos(), and getCCGDerivedMesh().
Definition at line 2597 of file CCGSubSurf.c.
References _CCGEdge::faces, NULL, and _CCGEdge::numFaces.
Referenced by ccgdm_adjacent_grid().
CCGEdgeIterator* ccgSubSurf_getEdgeIterator | ( | CCGSubSurf * | ss | ) |
Definition at line 2691 of file CCGSubSurf.c.
References _ehashIterator_new(), and _CCGSubSurf::eMap.
Referenced by ccgDM_drawMappedEdges(), ccgDM_drawMappedEdgesInterp(), ccgDM_drawVerts(), ccgDM_foreachMappedEdge(), ccgDM_getMinMax(), ccgdm_getVertCos(), and getCCGDerivedMesh().
void* ccgSubSurf_getEdgeLevelData | ( | CCGSubSurf * | ss, |
CCGEdge * | e, | ||
int | x, | ||
int | level | ||
) |
Definition at line 2616 of file CCGSubSurf.c.
References _edge_getCo(), _CCGSubSurf::meshIFC, NULL, _CCGSubSurf::subdivLevels, and _CCGMeshIFC::vertDataSize.
Referenced by ccgSubSurf_getEdgeData().
int ccgSubSurf_getEdgeLevelSize | ( | const CCGSubSurf * | ss, |
int | level | ||
) |
Definition at line 2513 of file CCGSubSurf.c.
References _CCGSubSurf::subdivLevels.
Referenced by ccgSubSurf_getEdgeSize().
int ccgSubSurf_getEdgeNumFaces | ( | CCGEdge * | e | ) |
Definition at line 2594 of file CCGSubSurf.c.
References _CCGEdge::numFaces.
Referenced by ccgdm_adjacent_grid(), ccgDM_copyFinalEdgeArray(), ccgDM_drawEdges(), ccgDM_drawLooseEdges(), and ccgDM_getFinalEdge().
int ccgSubSurf_getEdgeSize | ( | const CCGSubSurf * | ss | ) |
Definition at line 2510 of file CCGSubSurf.c.
References ccgSubSurf_getEdgeLevelSize(), and _CCGSubSurf::subdivLevels.
Referenced by ccgDM_copyFinalEdgeArray(), ccgDM_copyFinalFaceArray(), ccgDM_copyFinalVertArray(), ccgDM_drawEdges(), ccgDM_drawLooseEdges(), ccgDM_drawMappedEdges(), ccgDM_drawMappedEdgesInterp(), ccgDM_drawMappedFacesGLSL(), ccgDM_drawMappedFacesMat(), ccgDM_drawVerts(), ccgDM_foreachMappedEdge(), ccgDM_get_edge_data_layer(), ccgDM_getFinalEdge(), ccgDM_getFinalFace(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and multires_mvert_to_ss().
void* ccgSubSurf_getEdgeUserData | ( | CCGSubSurf * | ss, |
CCGEdge * | e | ||
) |
Definition at line 2591 of file CCGSubSurf.c.
References EDGE_getLevelData, _CCGSubSurf::meshIFC, _CCGSubSurf::subdivLevels, and _CCGMeshIFC::vertDataSize.
Referenced by _edge_new(), ccgDM_getEdgeMapIndex(), ccgSubSurf__sync(), ccgSubSurf_getEdgeAge(), ccgSubSurf_syncFace(), getCCGDerivedMesh(), getEdgeIndex(), getFaceIndex(), and ss_sync_from_derivedmesh().
Definition at line 2604 of file CCGSubSurf.c.
References _CCGEdge::v0.
Referenced by getCCGDerivedMesh(), getEdgeIndex(), and getFaceIndex().
Definition at line 2607 of file CCGSubSurf.c.
References _CCGEdge::v1.
Referenced by getCCGDerivedMesh(), and getEdgeIndex().
CCGFace* ccgSubSurf_getFace | ( | CCGSubSurf * | ss, |
CCGFaceHDL | f | ||
) |
Definition at line 2503 of file CCGSubSurf.c.
References _ehash_lookup(), and _CCGSubSurf::fMap.
Referenced by ss_sync_from_uv().
int ccgSubSurf_getFaceAge | ( | CCGSubSurf * | ss, |
CCGFace * | f | ||
) |
Definition at line 2632 of file CCGSubSurf.c.
References ccgSubSurf_getFaceUserData(), _CCGSubSurf::currentAge, _CCGSubSurf::faceUserAgeOffset, and _CCGSubSurf::useAgeCounts.
void* ccgSubSurf_getFaceCenterData | ( | CCGFace * | f | ) |
Definition at line 2670 of file CCGSubSurf.c.
References FACE_getCenterData.
Referenced by ccgDM_copyFinalVertArray(), ccgDM_drawVerts(), ccgDM_getFinalVert(), ccgdm_getVertCos(), multires_mvert_to_ss(), and subsurf_calculate_limit_positions().
CCGEdge* ccgSubSurf_getFaceEdge | ( | CCGSubSurf * | ss, |
CCGFace * | f, | ||
int | index | ||
) |
Definition at line 2661 of file CCGSubSurf.c.
References FACE_getEdges, i, and _CCGFace::numVerts.
CCGFaceHDL ccgSubSurf_getFaceFaceHandle | ( | CCGSubSurf * | ss, |
CCGFace * | f | ||
) |
void* ccgSubSurf_getFaceGridData | ( | CCGSubSurf * | ss, |
CCGFace * | f, | ||
int | gridIndex, | ||
int | x, | ||
int | y | ||
) |
Definition at line 2682 of file CCGSubSurf.c.
References _face_getIFCo(), _CCGSubSurf::meshIFC, _CCGSubSurf::subdivLevels, and _CCGMeshIFC::vertDataSize.
Referenced by ccgDM_copyFinalVertArray(), ccgDM_drawVerts(), ccgDM_foreachMappedFaceCenter(), ccgDM_getFinalVert(), ccgdm_getVertCos(), ccgSubSurf_getFaceGridDataArray(), and multires_mvert_to_ss().
void* ccgSubSurf_getFaceGridDataArray | ( | CCGSubSurf * | ss, |
CCGFace * | f, | ||
int | gridIndex | ||
) |
Definition at line 2679 of file CCGSubSurf.c.
References ccgSubSurf_getFaceGridData().
Referenced by ccgdm_create_grids(), ccgDM_drawEdges(), ccgDM_drawFacesColored(), ccgDM_drawFacesSolid(), ccgDM_drawFacesTex_common(), ccgDM_drawMappedFaces(), ccgDM_drawMappedFacesGLSL(), ccgDM_drawMappedFacesMat(), ccgDM_getMinMax(), and set_subsurf_uv().
void* ccgSubSurf_getFaceGridEdgeData | ( | CCGSubSurf * | ss, |
CCGFace * | f, | ||
int | gridIndex, | ||
int | x | ||
) |
Definition at line 2676 of file CCGSubSurf.c.
References _face_getIECo(), _CCGSubSurf::meshIFC, _CCGSubSurf::subdivLevels, and _CCGMeshIFC::vertDataSize.
Referenced by ccgDM_copyFinalVertArray(), ccgDM_drawVerts(), ccgDM_getFinalVert(), ccgdm_getVertCos(), ccgSubSurf_getFaceGridEdgeDataArray(), and multires_mvert_to_ss().
void* ccgSubSurf_getFaceGridEdgeDataArray | ( | CCGSubSurf * | ss, |
CCGFace * | f, | ||
int | gridIndex | ||
) |
Definition at line 2673 of file CCGSubSurf.c.
References ccgSubSurf_getFaceGridEdgeData().
CCGFaceIterator* ccgSubSurf_getFaceIterator | ( | CCGSubSurf * | ss | ) |
Definition at line 2694 of file CCGSubSurf.c.
References _ehashIterator_new(), and _CCGSubSurf::fMap.
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedFaceCenter(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and set_subsurf_uv().
int ccgSubSurf_getFaceNumVerts | ( | CCGFace * | f | ) |
Definition at line 2644 of file CCGSubSurf.c.
References _CCGFace::numVerts.
Referenced by ccgdm_adjacent_grid(), ccgDM_copyFinalEdgeArray(), ccgDM_copyFinalFaceArray(), ccgDM_copyFinalVertArray(), ccgdm_create_grids(), ccgDM_drawEdges(), ccgDM_drawFacesColored(), ccgDM_drawFacesSolid(), ccgDM_drawFacesTex_common(), ccgDM_drawMappedFaces(), ccgDM_drawMappedFacesGLSL(), ccgDM_drawMappedFacesMat(), ccgDM_drawVerts(), ccgDM_get_face_data_layer(), ccgDM_getFinalVert(), ccgDM_getMinMax(), ccgDM_getNumGrids(), ccgdm_getVertCos(), getCCGDerivedMesh(), getFaceIndex(), multires_mvert_to_ss(), and set_subsurf_uv().
void* ccgSubSurf_getFaceUserData | ( | CCGSubSurf * | ss, |
CCGFace * | f | ||
) |
Definition at line 2640 of file CCGSubSurf.c.
References FACE_getCenterData, _CCGSubSurf::meshIFC, _CCGFace::numVerts, _CCGSubSurf::subdivLevels, and _CCGMeshIFC::vertDataSize.
Referenced by _face_new(), ccgDM_getFaceMapIndex(), ccgSubSurf__sync(), ccgSubSurf_getFaceAge(), getCCGDerivedMesh(), getFaceIndex(), and ss_sync_from_derivedmesh().
CCGVert* ccgSubSurf_getFaceVert | ( | CCGSubSurf * | ss, |
CCGFace * | f, | ||
int | index | ||
) |
int ccgSubSurf_getGridLevelSize | ( | const CCGSubSurf * | ss, |
int | level | ||
) |
Definition at line 2523 of file CCGSubSurf.c.
References _CCGSubSurf::subdivLevels.
Referenced by ccgSubSurf_getGridSize().
int ccgSubSurf_getGridSize | ( | const CCGSubSurf * | ss | ) |
Definition at line 2520 of file CCGSubSurf.c.
References ccgSubSurf_getGridLevelSize(), and _CCGSubSurf::subdivLevels.
Referenced by ccgDM_copyFinalEdgeArray(), ccgDM_copyFinalFaceArray(), ccgDM_copyFinalVertArray(), ccgDM_drawEdges(), ccgDM_drawFacesColored(), ccgDM_drawFacesSolid(), ccgDM_drawFacesTex_common(), ccgDM_drawMappedFaces(), ccgDM_drawMappedFacesGLSL(), ccgDM_drawMappedFacesMat(), ccgDM_drawVerts(), ccgDM_get_face_data_layer(), ccgDM_getFinalEdge(), ccgDM_getFinalFace(), ccgDM_getFinalVert(), ccgDM_getGridSize(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), multires_mvert_to_ss(), and set_subsurf_uv().
int ccgSubSurf_getNumEdges | ( | const CCGSubSurf * | ss | ) |
Definition at line 2490 of file CCGSubSurf.c.
References _CCGSubSurf::eMap, and _EHash::numEntries.
Referenced by ccgDM_copyFinalEdgeArray(), ccgDM_copyFinalVertArray(), ccgDM_drawEdges(), ccgDM_drawLooseEdges(), ccgDM_get_edge_data_layer(), ccgDM_getFinalVert(), ccgdm_getVertCos(), getCCGDerivedMesh(), and multires_mvert_to_ss().
int ccgSubSurf_getNumFaces | ( | const CCGSubSurf * | ss | ) |
Definition at line 2493 of file CCGSubSurf.c.
References _CCGSubSurf::fMap, and _EHash::numEntries.
Referenced by ccgDM_copyFinalEdgeArray(), ccgDM_copyFinalFaceArray(), ccgDM_copyFinalVertArray(), ccgdm_create_grids(), ccgDM_drawEdges(), ccgDM_drawFacesColored(), ccgDM_drawFacesSolid(), ccgDM_drawFacesTex_common(), ccgDM_drawMappedFaces(), ccgDM_drawMappedFacesGLSL(), ccgDM_drawMappedFacesMat(), ccgDM_get_face_data_layer(), ccgDM_getFinalEdge(), ccgDM_getFinalFace(), ccgDM_getFinalVert(), ccgDM_getNumGrids(), ccgdm_getVertCos(), getCCGDerivedMesh(), multires_mvert_to_ss(), and set_subsurf_uv().
int ccgSubSurf_getNumFinalEdges | ( | const CCGSubSurf * | ss | ) |
Definition at line 2745 of file CCGSubSurf.c.
References _CCGSubSurf::eMap, _EHash::numEntries, _CCGSubSurf::numGrids, and _CCGSubSurf::subdivLevels.
Referenced by ccgDM_getNumEdges(), and getCCGDerivedMesh().
int ccgSubSurf_getNumFinalFaces | ( | const CCGSubSurf * | ss | ) |
Definition at line 2751 of file CCGSubSurf.c.
References _CCGSubSurf::numGrids, and _CCGSubSurf::subdivLevels.
Referenced by ccgDM_getNumFaces(), and getCCGDerivedMesh().
int ccgSubSurf_getNumFinalVerts | ( | const CCGSubSurf * | ss | ) |
Definition at line 2739 of file CCGSubSurf.c.
References _CCGSubSurf::eMap, _CCGSubSurf::fMap, _EHash::numEntries, _CCGSubSurf::numGrids, _CCGSubSurf::subdivLevels, and _CCGSubSurf::vMap.
Referenced by ccgDM_getNumVerts(), and getCCGDerivedMesh().
int ccgSubSurf_getNumVerts | ( | const CCGSubSurf * | ss | ) |
Definition at line 2487 of file CCGSubSurf.c.
References _EHash::numEntries, and _CCGSubSurf::vMap.
Referenced by ccgDM_copyFinalVertArray(), ccgDM_get_vert_data_layer(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and multires_mvert_to_ss().
int ccgSubSurf_getSubdivisionLevels | ( | const CCGSubSurf * | ss | ) |
Definition at line 2507 of file CCGSubSurf.c.
References _CCGSubSurf::subdivLevels.
Referenced by set_subsurf_uv(), ss_sync_from_derivedmesh(), and ss_sync_from_uv().
void ccgSubSurf_getUseAgeCounts | ( | CCGSubSurf * | ss, |
int * | useAgeCounts_r, | ||
int * | vertUserOffset_r, | ||
int * | edgeUserOffset_r, | ||
int * | faceUserOffset_r | ||
) |
Definition at line 764 of file CCGSubSurf.c.
References _CCGSubSurf::edgeUserAgeOffset, _CCGSubSurf::faceUserAgeOffset, _CCGSubSurf::useAgeCounts, and _CCGSubSurf::vertUserAgeOffset.
Referenced by _getSubSurf(), ccgDM_drawEdges(), ccgDM_drawMappedEdges(), and ccgDM_drawMappedEdgesInterp().
CCGVert* ccgSubSurf_getVert | ( | CCGSubSurf * | ss, |
CCGVertHDL | v | ||
) |
Definition at line 2497 of file CCGSubSurf.c.
References _ehash_lookup(), and _CCGSubSurf::vMap.
int ccgSubSurf_getVertAge | ( | CCGSubSurf * | ss, |
CCGVert * | v | ||
) |
Definition at line 2536 of file CCGSubSurf.c.
References ccgSubSurf_getVertUserData(), _CCGSubSurf::currentAge, _CCGSubSurf::useAgeCounts, and _CCGSubSurf::vertUserAgeOffset.
void* ccgSubSurf_getVertData | ( | CCGSubSurf * | ss, |
CCGVert * | v | ||
) |
Definition at line 2567 of file CCGSubSurf.c.
References ccgSubSurf_getVertLevelData(), and _CCGSubSurf::subdivLevels.
Referenced by ccgDM_copyFinalVertArray(), ccgDM_drawVerts(), ccgDM_foreachMappedVert(), ccgDM_getFinalVert(), ccgDM_getMinMax(), ccgdm_getVertCos(), multires_mvert_to_ss(), and subsurf_calculate_limit_positions().
Definition at line 2560 of file CCGSubSurf.c.
References _CCGVert::edges, NULL, and _CCGVert::numEdges.
Referenced by subsurf_calculate_limit_positions().
Definition at line 2550 of file CCGSubSurf.c.
References _CCGVert::faces, NULL, and _CCGVert::numFaces.
Referenced by subsurf_calculate_limit_positions().
CCGVertIterator* ccgSubSurf_getVertIterator | ( | CCGSubSurf * | ss | ) |
Definition at line 2688 of file CCGSubSurf.c.
References _ehashIterator_new(), and _CCGSubSurf::vMap.
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedVert(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and subsurf_calculate_limit_positions().
void* ccgSubSurf_getVertLevelData | ( | CCGSubSurf * | ss, |
CCGVert * | v, | ||
int | level | ||
) |
Definition at line 2570 of file CCGSubSurf.c.
References _vert_getCo(), _CCGSubSurf::meshIFC, NULL, _CCGSubSurf::subdivLevels, and _CCGMeshIFC::vertDataSize.
Referenced by ccgSubSurf_getVertData().
int ccgSubSurf_getVertNumEdges | ( | CCGVert * | v | ) |
Definition at line 2557 of file CCGSubSurf.c.
References _CCGVert::numEdges.
Referenced by subsurf_calculate_limit_positions().
int ccgSubSurf_getVertNumFaces | ( | CCGVert * | v | ) |
Definition at line 2547 of file CCGSubSurf.c.
References _CCGVert::numFaces.
Referenced by subsurf_calculate_limit_positions().
void* ccgSubSurf_getVertUserData | ( | CCGSubSurf * | ss, |
CCGVert * | v | ||
) |
Definition at line 2544 of file CCGSubSurf.c.
References _CCGSubSurf::meshIFC, _CCGSubSurf::subdivLevels, VERT_getLevelData, and _CCGMeshIFC::vertDataSize.
Referenced by _vert_new(), ccgDM_getVertMapIndex(), ccgSubSurf__sync(), ccgSubSurf_getVertAge(), getCCGDerivedMesh(), getEdgeIndex(), getFaceIndex(), and ss_sync_from_derivedmesh().
CCGVertHDL ccgSubSurf_getVertVertHandle | ( | CCGVert * | v | ) |
Definition at line 2533 of file CCGSubSurf.c.
References _CCGVert::vHDL.
Referenced by ccgdm_getVertCos(), getCCGDerivedMesh(), and subsurf_calculate_limit_positions().
CCGError ccgSubSurf_initFullSync | ( | CCGSubSurf * | ss | ) |
Definition at line 811 of file CCGSubSurf.c.
References _ehash_new(), _CCGSubSurf::allocator, _CCGSubSurf::allocatorIFC, _CCGSubSurf::currentAge, eCCGError_InvalidSyncState, eCCGError_None, _CCGSubSurf::eMap, eSyncState_None, eSyncState_Vert, _CCGSubSurf::fMap, _CCGSubSurf::lenTempArrays, MEM_mallocN(), _CCGSubSurf::numGrids, _CCGSubSurf::oldEMap, _CCGSubSurf::oldFMap, _CCGSubSurf::oldVMap, _CCGSubSurf::syncState, _CCGSubSurf::tempEdges, _CCGSubSurf::tempVerts, and _CCGSubSurf::vMap.
Referenced by ss_sync_from_derivedmesh(), and ss_sync_from_uv().
CCGError ccgSubSurf_initPartialSync | ( | CCGSubSurf * | ss | ) |
Definition at line 837 of file CCGSubSurf.c.
References _CCGSubSurf::currentAge, eCCGError_InvalidSyncState, eCCGError_None, eSyncState_None, eSyncState_Partial, and _CCGSubSurf::syncState.
CCGSubSurf* ccgSubSurf_new | ( | CCGMeshIFC * | ifc, |
int | subdivisionLevels, | ||
CCGAllocatorIFC * | allocatorIFC, | ||
CCGAllocatorHDL | allocator | ||
) |
Definition at line 646 of file CCGSubSurf.c.
References _ehash_new(), _getStandardAllocatorIFC(), _CCGAllocatorIFC::alloc, _CCGSubSurf::allocator, _CCGSubSurf::allocatorIFC, _CCGSubSurf::allowEdgeCreation, _CCGSubSurf::calcVertNormals, CCGSUBSURF_alloc, _CCGSubSurf::currentAge, _CCGSubSurf::defaultCreaseValue, _CCGSubSurf::defaultEdgeUserData, _CCGSubSurf::edgeUserAgeOffset, _CCGSubSurf::eMap, eSyncState_None, _CCGSubSurf::faceUserAgeOffset, _CCGSubSurf::fMap, _CCGSubSurf::lenTempArrays, _CCGSubSurf::meshIFC, _CCGSubSurf::normalDataOffset, NULL, _CCGSubSurf::numGrids, _CCGSubSurf::oldEMap, _CCGSubSurf::oldFMap, _CCGSubSurf::oldVMap, _CCGSubSurf::q, _CCGSubSurf::r, _CCGSubSurf::subdivLevels, _CCGSubSurf::syncState, _CCGSubSurf::tempEdges, _CCGSubSurf::tempVerts, _CCGSubSurf::useAgeCounts, _CCGMeshIFC::vertDataSize, _CCGSubSurf::vertUserAgeOffset, and _CCGSubSurf::vMap.
Referenced by _getSubSurf().
CCGError ccgSubSurf_processSync | ( | CCGSubSurf * | ss | ) |
Definition at line 1128 of file CCGSubSurf.c.
References _edge_unlinkMarkAndFree(), _ehash_free(), _face_unlinkMarkAndFree(), _vert_free(), ccgSubSurf__sync(), eCCGError_InvalidSyncState, eCCGError_None, eSyncState_None, eSyncState_Partial, _CCGSubSurf::lenTempArrays, MEM_freeN(), NULL, _CCGSubSurf::oldEMap, _CCGSubSurf::oldFMap, _CCGSubSurf::oldVMap, _CCGSubSurf::syncState, _CCGSubSurf::tempEdges, and _CCGSubSurf::tempVerts.
Referenced by ss_sync_from_derivedmesh(), and ss_sync_from_uv().
CCGError ccgSubSurf_setAllowEdgeCreation | ( | CCGSubSurf * | ss, |
int | allowEdgeCreation, | ||
float | defaultCreaseValue, | ||
void * | defaultUserData | ||
) |
Definition at line 722 of file CCGSubSurf.c.
References _CCGSubSurf::allowEdgeCreation, CCGSUBSURF_alloc, CCGSUBSURF_free, _CCGSubSurf::defaultCreaseValue, _CCGSubSurf::defaultEdgeUserData, eCCGError_None, _CCGMeshIFC::edgeUserSize, and _CCGSubSurf::meshIFC.
CCGError ccgSubSurf_setCalcVertexNormals | ( | CCGSubSurf * | ss, |
int | useVertNormals, | ||
int | normalDataOffset | ||
) |
Definition at line 793 of file CCGSubSurf.c.
References _CCGSubSurf::calcVertNormals, eCCGError_InvalidValue, eCCGError_None, _CCGSubSurf::meshIFC, _CCGSubSurf::normalDataOffset, and _CCGMeshIFC::vertDataSize.
Referenced by _getSubSurf().
CCGError ccgSubSurf_setSubdivisionLevels | ( | CCGSubSurf * | ss, |
int | subdivisionLevels | ||
) |
Definition at line 747 of file CCGSubSurf.c.
References _edge_free(), _ehash_free(), _ehash_new(), _face_free(), _vert_free(), _CCGSubSurf::allocator, _CCGSubSurf::allocatorIFC, eCCGError_InvalidValue, eCCGError_None, _CCGSubSurf::eMap, _CCGSubSurf::fMap, _CCGSubSurf::numGrids, _CCGSubSurf::subdivLevels, and _CCGSubSurf::vMap.
Referenced by _getSubSurf().
CCGError ccgSubSurf_setUseAgeCounts | ( | CCGSubSurf * | ss, |
int | useAgeCounts, | ||
int | vertUserOffset, | ||
int | edgeUserOffset, | ||
int | faceUserOffset | ||
) |
Definition at line 773 of file CCGSubSurf.c.
References eCCGError_InvalidValue, eCCGError_None, _CCGSubSurf::edgeUserAgeOffset, _CCGMeshIFC::edgeUserSize, _CCGSubSurf::faceUserAgeOffset, _CCGMeshIFC::faceUserSize, _CCGSubSurf::meshIFC, _CCGSubSurf::useAgeCounts, _CCGSubSurf::vertUserAgeOffset, and _CCGMeshIFC::vertUserSize.
Referenced by _getSubSurf().
CCGError ccgSubSurf_stitchFaces | ( | CCGSubSurf * | ss, |
int | lvl, | ||
CCGFace ** | faces, | ||
int | numFaces | ||
) |
Definition at line 2283 of file CCGSubSurf.c.
References _edge_getCoVert(), ccgSubSurf__allFaces(), ccgSubSurf__effectedFaceNeighbours(), credits_svn_gen::e, eCCGError_None, Edge_eEffected, EDGE_getCo, FACE_getCenterData, FACE_getEdges, FACE_getIECo, FACE_getIFCo, FACE_getVerts, i, MEM_freeN(), _CCGSubSurf::meshIFC, _CCGVert::numFaces, _CCGEdge::numFaces, _CCGFace::numVerts, _CCGSubSurf::subdivLevels, _CCGEdge::v0, _CCGEdge::v1, Vert_eEffected, VERT_getCo, VertDataAdd, VertDataCopy, VertDataMulN, _CCGMeshIFC::vertDataSize, and VertDataZero.
Referenced by multires_stitch_grids(), and multiresModifier_disp_run().
CCGError ccgSubSurf_sync | ( | CCGSubSurf * | ss | ) |
CCGError ccgSubSurf_syncEdge | ( | CCGSubSurf * | ss, |
CCGEdgeHDL | eHDL, | ||
CCGVertHDL | e_vHDL0, | ||
CCGVertHDL | e_vHDL1, | ||
float | crease, | ||
CCGEdge ** | e_r | ||
) |
Definition at line 960 of file CCGSubSurf.c.
References _edge_new(), _edge_unlinkMarkAndFree(), _ehash_insert(), _ehash_lookup(), _ehash_lookupWithPrev(), _CCGEdge::crease, credits_svn_gen::e, eCCGError_InvalidSyncState, eCCGError_None, _CCGSubSurf::eMap, eSyncState_Edge, eSyncState_Partial, eSyncState_Vert, _CCGEdge::next, NULL, _CCGSubSurf::oldEMap, _CCGSubSurf::syncState, _CCGEdge::v0, _CCGEdge::v1, Vert_eChanged, Vert_eEffected, _CCGVert::vHDL, and _CCGSubSurf::vMap.
Referenced by ss_sync_from_derivedmesh(), and ss_sync_from_uv().
CCGError ccgSubSurf_syncEdgeDel | ( | CCGSubSurf * | ss, |
CCGEdgeHDL | eHDL | ||
) |
Definition at line 867 of file CCGSubSurf.c.
References _edge_unlinkMarkAndFree(), _ehash_lookupWithPrev(), credits_svn_gen::e, eCCGError_InvalidSyncState, eCCGError_InvalidValue, eCCGError_None, _CCGSubSurf::eMap, eSyncState_Partial, _CCGEdge::next, _CCGEdge::numFaces, and _CCGSubSurf::syncState.
CCGError ccgSubSurf_syncFace | ( | CCGSubSurf * | ss, |
CCGFaceHDL | fHDL, | ||
int | numVerts, | ||
CCGVertHDL * | vHDLs, | ||
CCGFace ** | f_r | ||
) |
Definition at line 1014 of file CCGSubSurf.c.
References _edge_new(), _ehash_insert(), _ehash_lookup(), _ehash_lookupWithPrev(), _face_new(), _face_unlinkMarkAndFree(), _vert_findEdgeTo(), _CCGSubSurf::allowEdgeCreation, ccgSubSurf_getEdgeUserData(), _CCGSubSurf::defaultCreaseValue, _CCGSubSurf::defaultEdgeUserData, credits_svn_gen::e, eCCGError_InvalidSyncState, eCCGError_InvalidValue, eCCGError_None, _CCGMeshIFC::edgeUserSize, _CCGSubSurf::eMap, eSyncState_Edge, eSyncState_Face, eSyncState_Partial, eSyncState_Vert, FACE_getEdges, FACE_getVerts, _CCGSubSurf::fMap, _CCGSubSurf::lenTempArrays, MEM_reallocN(), _CCGSubSurf::meshIFC, _CCGFace::next, NULL, _CCGSubSurf::numGrids, _CCGFace::numVerts, _CCGSubSurf::oldFMap, _CCGSubSurf::syncState, _CCGSubSurf::tempEdges, _CCGSubSurf::tempVerts, Vert_eChanged, Vert_eEffected, and _CCGSubSurf::vMap.
Referenced by ss_sync_from_derivedmesh(), and ss_sync_from_uv().
CCGError ccgSubSurf_syncFaceDel | ( | CCGSubSurf * | ss, |
CCGFaceHDL | fHDL | ||
) |
Definition at line 885 of file CCGSubSurf.c.
References _ehash_lookupWithPrev(), _face_unlinkMarkAndFree(), eCCGError_InvalidSyncState, eCCGError_InvalidValue, eCCGError_None, eSyncState_Partial, _CCGSubSurf::fMap, _CCGFace::next, and _CCGSubSurf::syncState.
CCGError ccgSubSurf_syncVert | ( | CCGSubSurf * | ss, |
CCGVertHDL | vHDL, | ||
const void * | vertData, | ||
int | seam, | ||
CCGVert ** | v_r | ||
) |
Definition at line 903 of file CCGSubSurf.c.
References _ehash_insert(), _ehash_lookupWithPrev(), _vert_getCo(), _vert_new(), credits_svn_gen::e, eCCGError_InvalidSyncState, eCCGError_None, _CCGVert::edges, eSyncState_Partial, eSyncState_Vert, FACE_getVerts, _CCGVert::faces, _CCGVert::flags, i, _CCGSubSurf::meshIFC, _CCGVert::next, NULL, _CCGVert::numEdges, _CCGVert::numFaces, _CCGFace::numVerts, _CCGSubSurf::oldVMap, _CCGSubSurf::syncState, _CCGEdge::v0, _CCGEdge::v1, Vert_eChanged, Vert_eEffected, Vert_eSeam, VertDataCopy, VertDataEqual(), _CCGMeshIFC::vertDataSize, and _CCGSubSurf::vMap.
Referenced by ss_sync_from_derivedmesh(), and ss_sync_from_uv().
CCGError ccgSubSurf_syncVertDel | ( | CCGSubSurf * | ss, |
CCGVertHDL | vHDL | ||
) |
Definition at line 849 of file CCGSubSurf.c.
References _ehash_lookupWithPrev(), _vert_free(), eCCGError_InvalidSyncState, eCCGError_InvalidValue, eCCGError_None, eSyncState_Partial, _CCGVert::next, _CCGVert::numEdges, _CCGVert::numFaces, _CCGSubSurf::syncState, and _CCGSubSurf::vMap.
CCGError ccgSubSurf_updateFromFaces | ( | CCGSubSurf * | ss, |
int | lvl, | ||
CCGFace ** | faces, | ||
int | numFaces | ||
) |
Definition at line 2201 of file CCGSubSurf.c.
References _edge_getCoVert(), ccgSubSurf__allFaces(), credits_svn_gen::e, eCCGError_None, FACE_getCenterData, FACE_getEdges, FACE_getIECo, FACE_getIFCo, FACE_getVerts, i, MEM_freeN(), _CCGSubSurf::meshIFC, _CCGFace::numVerts, _CCGSubSurf::subdivLevels, VERT_getCo, VertDataCopy, and _CCGMeshIFC::vertDataSize.
Referenced by ccgdm_pbvh_update(), multires_subdivide(), and multiresModifier_update().
CCGError ccgSubSurf_updateLevels | ( | CCGSubSurf * | ss, |
int | lvl, | ||
CCGFace ** | faces, | ||
int | numFaces | ||
) |
Definition at line 2449 of file CCGSubSurf.c.
References ccgSubSurf__allFaces(), ccgSubSurf__calcSubdivLevel(), ccgSubSurf__effectedFaceNeighbours(), eCCGError_None, i, MEM_freeN(), and _CCGSubSurf::subdivLevels.
Referenced by multires_subdivide(), and multiresModifier_update().
CCGError ccgSubSurf_updateNormals | ( | CCGSubSurf * | ss, |
CCGFace ** | faces, | ||
int | numFaces | ||
) |
Definition at line 2418 of file CCGSubSurf.c.
References _CCGSubSurf::calcVertNormals, ccgSubSurf__allFaces(), ccgSubSurf__calcVertNormals(), ccgSubSurf__effectedFaceNeighbours(), eCCGError_None, i, and MEM_freeN().
Referenced by ccgdm_pbvh_update(), and multiresModifier_disp_run().
CCGError ccgSubSurf_updateToFaces | ( | CCGSubSurf * | ss, |
int | lvl, | ||
CCGFace ** | faces, | ||
int | numFaces | ||
) |
Definition at line 2240 of file CCGSubSurf.c.
References _edge_getCoVert(), ccgSubSurf__allFaces(), credits_svn_gen::e, eCCGError_None, FACE_getCenterData, FACE_getEdges, FACE_getIECo, FACE_getIFCo, FACE_getVerts, i, MEM_freeN(), _CCGSubSurf::meshIFC, _CCGFace::numVerts, _CCGSubSurf::subdivLevels, VERT_getCo, VertDataCopy, and _CCGMeshIFC::vertDataSize.
Referenced by multires_mvert_to_ss().
void ccgVertIterator_free | ( | CCGVertIterator * | vi | ) |
Definition at line 2707 of file CCGSubSurf.c.
References _ehashIterator_free().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedVert(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and subsurf_calculate_limit_positions().
CCGVert* ccgVertIterator_getCurrent | ( | CCGVertIterator * | vi | ) |
Definition at line 2698 of file CCGSubSurf.c.
References _ehashIterator_getCurrent().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedVert(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and subsurf_calculate_limit_positions().
int ccgVertIterator_isStopped | ( | CCGVertIterator * | vi | ) |
Definition at line 2701 of file CCGSubSurf.c.
References _ehashIterator_isStopped().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedVert(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and subsurf_calculate_limit_positions().
void ccgVertIterator_next | ( | CCGVertIterator * | vi | ) |
Definition at line 2704 of file CCGSubSurf.c.
References _ehashIterator_next().
Referenced by ccgDM_drawVerts(), ccgDM_foreachMappedVert(), ccgDM_getMinMax(), ccgdm_getVertCos(), getCCGDerivedMesh(), and subsurf_calculate_limit_positions().