Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_subdiv_ccg.h
| Show All 15 Lines | |||||
| #endif | #endif | ||||
| struct CCGElem; | struct CCGElem; | ||||
| struct CCGFace; | struct CCGFace; | ||||
| struct CCGKey; | struct CCGKey; | ||||
| struct DMFlagMat; | struct DMFlagMat; | ||||
| struct Mesh; | struct Mesh; | ||||
| struct MPoly; | struct MPoly; | ||||
| struct MLoop; | |||||
| struct Subdiv; | struct Subdiv; | ||||
| /* -------------------------------------------------------------------- | /* -------------------------------------------------------------------- | ||||
| * Masks. | * Masks. | ||||
| */ | */ | ||||
| /* Functor which evaluates mask value at a given (u, v) of given ptex face. */ | /* Functor which evaluates mask value at a given (u, v) of given ptex face. */ | ||||
| typedef struct SubdivCCGMaskEvaluator { | typedef struct SubdivCCGMaskEvaluator { | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| SUBDIV_CCG_ADJACENT_EDGE, | SUBDIV_CCG_ADJACENT_EDGE, | ||||
| } SubdivCCGAdjacencyType; | } SubdivCCGAdjacencyType; | ||||
| /* Returns if a grid coordinates is adjacent to a coarse mesh edge, vertex or nothing. If it is | /* Returns if a grid coordinates is adjacent to a coarse mesh edge, vertex or nothing. If it is | ||||
| * adjacent to an edge, r_v1 and r_v2 will be set to the two vertices of that edge. If it is | * adjacent to an edge, r_v1 and r_v2 will be set to the two vertices of that edge. If it is | ||||
| * adjacent to a vertex, r_v1 and r_v2 will be the index of that vertex. */ | * adjacent to a vertex, r_v1 and r_v2 will be the index of that vertex. */ | ||||
| SubdivCCGAdjacencyType BKE_subdiv_ccg_coarse_mesh_adjacency_info_get(const SubdivCCG *subdiv_ccg, | SubdivCCGAdjacencyType BKE_subdiv_ccg_coarse_mesh_adjacency_info_get(const SubdivCCG *subdiv_ccg, | ||||
| const SubdivCCGCoord *coord, | const SubdivCCGCoord *coord, | ||||
| const struct MLoop *mloop, | const int *corner_verts, | ||||
| const struct MPoly *mpoly, | const struct MPoly *mpoly, | ||||
| int *r_v1, | int *r_v1, | ||||
| int *r_v2); | int *r_v2); | ||||
| /* Get array which is indexed by face index and contains index of a first grid of the face. | /* Get array which is indexed by face index and contains index of a first grid of the face. | ||||
| * | * | ||||
| * The "ensure" version allocates the mapping if it's not known yet and stores it in the subdiv_ccg | * The "ensure" version allocates the mapping if it's not known yet and stores it in the subdiv_ccg | ||||
| * descriptor. This function is NOT safe for threading. | * descriptor. This function is NOT safe for threading. | ||||
| Show All 11 Lines | |||||