|
Blender V4.3
|
#include <cmath>#include "BKE_subdiv_ccg.hh"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "BLI_utildefines.h"#include "BKE_customdata.hh"#include "BKE_subdiv.hh"#include "MEM_guardedalloc.h"Go to the source code of this file.
Classes | |
| struct | PolyCornerIndex |
| struct | GridPaintMaskData |
Functions | |
| static int | mask_get_grid_and_coord (SubdivCCGMaskEvaluator *mask_evaluator, const int ptex_face_index, const float u, const float v, const GridPaintMask **r_mask_grid, float *grid_u, float *grid_v) |
| BLI_INLINE float | read_mask_grid (const GridPaintMask *mask_grid, const float grid_u, const float grid_v) |
| static float | eval_mask (SubdivCCGMaskEvaluator *mask_evaluator, const int ptex_face_index, const float u, const float v) |
| static void | free_mask_data (SubdivCCGMaskEvaluator *mask_evaluator) |
| static int | count_num_ptex_faces (const Mesh *mesh) |
| static void | mask_data_init_mapping (SubdivCCGMaskEvaluator *mask_evaluator, const Mesh *mesh) |
| static void | mask_init_data (SubdivCCGMaskEvaluator *mask_evaluator, const Mesh *mesh) |
| static void | mask_init_functions (SubdivCCGMaskEvaluator *mask_evaluator) |
| bool | BKE_subdiv_ccg_mask_init_from_paint (SubdivCCGMaskEvaluator *mask_evaluator, const Mesh *mesh) |
| bool BKE_subdiv_ccg_mask_init_from_paint | ( | SubdivCCGMaskEvaluator * | mask_evaluator, |
| const Mesh * | mesh ) |
Definition at line 156 of file subdiv_ccg_mask.cc.
References CD_GRID_PAINT_MASK, CustomData_get_layer(), mask_init_data(), mask_init_functions(), and SubdivCCGMaskEvaluator::user_data.
Referenced by BKE_subdiv_to_ccg_mesh().
Definition at line 103 of file subdiv_ccg_mask.cc.
Referenced by mask_data_init_mapping().
|
static |
Definition at line 82 of file subdiv_ccg_mask.cc.
References mask_get_grid_and_coord(), read_mask_grid(), and v.
Referenced by mask_init_functions().
|
static |
Definition at line 93 of file subdiv_ccg_mask.cc.
References MEM_freeN(), and SubdivCCGMaskEvaluator::user_data.
Referenced by mask_init_functions().
|
static |
Definition at line 113 of file subdiv_ccg_mask.cc.
References PolyCornerIndex::corner, count_num_ptex_faces(), PolyCornerIndex::face_index, MEM_malloc_arrayN, and SubdivCCGMaskEvaluator::user_data.
Referenced by mask_init_data().
|
static |
Definition at line 43 of file subdiv_ccg_mask.cc.
References PolyCornerIndex::corner, PolyCornerIndex::face_index, blender::bke::subdiv::ptex_face_uv_to_grid_uv(), blender::bke::subdiv::rotate_quad_to_corner(), blender::IndexRange::start(), SubdivCCGMaskEvaluator::user_data, and v.
Referenced by eval_mask().
|
static |
Definition at line 141 of file subdiv_ccg_mask.cc.
References CD_GRID_PAINT_MASK, CustomData_get_layer(), GridPaintMaskData::faces, mask_data_init_mapping(), and SubdivCCGMaskEvaluator::user_data.
Referenced by BKE_subdiv_ccg_mask_init_from_paint().
|
static |
Definition at line 150 of file subdiv_ccg_mask.cc.
References eval_mask(), SubdivCCGMaskEvaluator::eval_mask, SubdivCCGMaskEvaluator::free, and free_mask_data().
Referenced by BKE_subdiv_ccg_mask_init_from_paint().
| BLI_INLINE float read_mask_grid | ( | const GridPaintMask * | mask_grid, |
| const float | grid_u, | ||
| const float | grid_v ) |
Definition at line 69 of file subdiv_ccg_mask.cc.
References GridPaintMask::data, blender::bke::subdiv::grid_size_from_level(), GridPaintMask::level, and x.
Referenced by eval_mask().