|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | MeshPairRemapItem |
| struct | MeshPairRemap |
Typedefs | |
| typedef struct MeshPairRemapItem | MeshPairRemapItem |
| typedef struct MeshPairRemap | MeshPairRemap |
Enumerations | |
| enum | { MREMAP_USE_VERT = 1 << 4 , MREMAP_USE_EDGE = 1 << 5 , MREMAP_USE_LOOP = 1 << 6 , MREMAP_USE_POLY = 1 << 7 , MREMAP_USE_NEAREST = 1 << 8 , MREMAP_USE_NORPROJ = 1 << 9 , MREMAP_USE_INTERP = 1 << 10 , MREMAP_USE_NORMAL = 1 << 11 , MREMAP_MODE_VERT = 1 << 24 , MREMAP_MODE_VERT_NEAREST = MREMAP_MODE_VERT | MREMAP_USE_VERT | MREMAP_USE_NEAREST , MREMAP_MODE_VERT_EDGE_NEAREST = MREMAP_MODE_VERT | MREMAP_USE_EDGE | MREMAP_USE_NEAREST , MREMAP_MODE_VERT_EDGEINTERP_NEAREST , MREMAP_MODE_VERT_POLY_NEAREST = MREMAP_MODE_VERT | MREMAP_USE_POLY | MREMAP_USE_NEAREST , MREMAP_MODE_VERT_POLYINTERP_NEAREST , MREMAP_MODE_VERT_POLYINTERP_VNORPROJ , MREMAP_MODE_EDGE = 1 << 25 , MREMAP_MODE_EDGE_VERT_NEAREST = MREMAP_MODE_EDGE | MREMAP_USE_VERT | MREMAP_USE_NEAREST , MREMAP_MODE_EDGE_NEAREST = MREMAP_MODE_EDGE | MREMAP_USE_EDGE | MREMAP_USE_NEAREST , MREMAP_MODE_EDGE_POLY_NEAREST = MREMAP_MODE_EDGE | MREMAP_USE_POLY | MREMAP_USE_NEAREST , MREMAP_MODE_EDGE_EDGEINTERP_VNORPROJ , MREMAP_MODE_LOOP = 1 << 26 , MREMAP_MODE_LOOP_NEAREST_LOOPNOR , MREMAP_MODE_LOOP_NEAREST_POLYNOR , MREMAP_MODE_LOOP_POLY_NEAREST = MREMAP_MODE_LOOP | MREMAP_USE_POLY | MREMAP_USE_NEAREST , MREMAP_MODE_LOOP_POLYINTERP_NEAREST , MREMAP_MODE_LOOP_POLYINTERP_LNORPROJ , MREMAP_MODE_POLY = 1 << 27 , MREMAP_MODE_POLY_NEAREST = MREMAP_MODE_POLY | MREMAP_USE_POLY | MREMAP_USE_NEAREST , MREMAP_MODE_POLY_NOR = MREMAP_MODE_POLY | MREMAP_USE_POLY | MREMAP_USE_NORMAL , MREMAP_MODE_POLY_POLYINTERP_PNORPROJ , MREMAP_MODE_TOPOLOGY = MREMAP_MODE_VERT | MREMAP_MODE_EDGE | MREMAP_MODE_LOOP | MREMAP_MODE_POLY } |
Functions | |
| void | BKE_mesh_remap_init (MeshPairRemap *map, const int items_num) |
| void | BKE_mesh_remap_free (MeshPairRemap *map) |
| void | BKE_mesh_remap_item_define_invalid (MeshPairRemap *map, const int index) |
| void | BKE_mesh_remap_calc_source_cddata_masks_from_map_modes (const int vert_mode, const int edge_mode, const int loop_mode, const int poly_mode, struct CustomData_MeshMasks *cddata_mask) |
| float | BKE_mesh_remap_calc_difference_from_mesh (const struct SpaceTransform *space_transform, const struct MVert *verts_dst, const int numverts_dst, struct Mesh *me_src) |
| void | BKE_mesh_remap_find_best_match_from_mesh (const struct MVert *verts_dst, const int numverts_dst, struct Mesh *me_src, struct SpaceTransform *r_space_transform) |
| void | BKE_mesh_remap_calc_verts_from_mesh (const int mode, const struct SpaceTransform *space_transform, const float max_dist, const float ray_radius, const struct MVert *verts_dst, const int numverts_dst, const bool dirty_nors_dst, struct Mesh *me_src, MeshPairRemap *r_map) |
| void | BKE_mesh_remap_calc_edges_from_mesh (const int mode, const struct SpaceTransform *space_transform, const float max_dist, const float ray_radius, const struct MVert *verts_dst, const int numverts_dst, const struct MEdge *edges_dst, const int numedges_dst, const bool dirty_nors_dst, struct Mesh *me_src, MeshPairRemap *r_map) |
| void | BKE_mesh_remap_calc_loops_from_mesh (const int mode, const struct SpaceTransform *space_transform, const float max_dist, const float ray_radius, struct MVert *verts_dst, const int numverts_dst, struct MEdge *edges_dst, const int numedges_dst, struct MLoop *loops_dst, const int numloops_dst, struct MPoly *polys_dst, const int numpolys_dst, struct CustomData *ldata_dst, struct CustomData *pdata_dst, const bool use_split_nors_dst, const float split_angle_dst, const bool dirty_nors_dst, struct Mesh *me_src, MeshRemapIslandsCalc gen_islands_src, const float islands_precision_src, struct MeshPairRemap *r_map) |
| void | BKE_mesh_remap_calc_polys_from_mesh (const int mode, const struct SpaceTransform *space_transform, const float max_dist, const float ray_radius, struct MVert *verts_dst, const int numverts_dst, struct MLoop *loops_dst, const int numloops_dst, struct MPoly *polys_dst, const int numpolys_dst, struct CustomData *pdata_dst, const bool dirty_nors_dst, struct Mesh *me_src, struct MeshPairRemap *r_map) |
| typedef struct MeshPairRemap MeshPairRemap |
| typedef struct MeshPairRemapItem MeshPairRemapItem |
| anonymous enum |
Definition at line 67 of file BKE_mesh_remap.h.
| float BKE_mesh_remap_calc_difference_from_mesh | ( | const struct SpaceTransform * | space_transform, |
| const struct MVert * | verts_dst, | ||
| const int | numverts_dst, | ||
| struct Mesh * | me_src | ||
| ) |
| void BKE_mesh_remap_calc_edges_from_mesh | ( | const int | mode, |
| const struct SpaceTransform * | space_transform, | ||
| const float | max_dist, | ||
| const float | ray_radius, | ||
| const struct MVert * | verts_dst, | ||
| const int | numverts_dst, | ||
| const struct MEdge * | edges_dst, | ||
| const int | numedges_dst, | ||
| const bool | dirty_nors_dst, | ||
| struct Mesh * | me_src, | ||
| MeshPairRemap * | r_map | ||
| ) |
Referenced by BKE_object_data_transfer_ex().
| void BKE_mesh_remap_calc_loops_from_mesh | ( | const int | mode, |
| const struct SpaceTransform * | space_transform, | ||
| const float | max_dist, | ||
| const float | ray_radius, | ||
| struct MVert * | verts_dst, | ||
| const int | numverts_dst, | ||
| struct MEdge * | edges_dst, | ||
| const int | numedges_dst, | ||
| struct MLoop * | loops_dst, | ||
| const int | numloops_dst, | ||
| struct MPoly * | polys_dst, | ||
| const int | numpolys_dst, | ||
| struct CustomData * | ldata_dst, | ||
| struct CustomData * | pdata_dst, | ||
| const bool | use_split_nors_dst, | ||
| const float | split_angle_dst, | ||
| const bool | dirty_nors_dst, | ||
| struct Mesh * | me_src, | ||
| MeshRemapIslandsCalc | gen_islands_src, | ||
| const float | islands_precision_src, | ||
| struct MeshPairRemap * | r_map | ||
| ) |
Referenced by BKE_object_data_transfer_ex().
| void BKE_mesh_remap_calc_polys_from_mesh | ( | const int | mode, |
| const struct SpaceTransform * | space_transform, | ||
| const float | max_dist, | ||
| const float | ray_radius, | ||
| struct MVert * | verts_dst, | ||
| const int | numverts_dst, | ||
| struct MLoop * | loops_dst, | ||
| const int | numloops_dst, | ||
| struct MPoly * | polys_dst, | ||
| const int | numpolys_dst, | ||
| struct CustomData * | pdata_dst, | ||
| const bool | dirty_nors_dst, | ||
| struct Mesh * | me_src, | ||
| struct MeshPairRemap * | r_map | ||
| ) |
Referenced by BKE_object_data_transfer_ex().
| void BKE_mesh_remap_calc_source_cddata_masks_from_map_modes | ( | const int | vert_mode, |
| const int | edge_mode, | ||
| const int | loop_mode, | ||
| const int | poly_mode, | ||
| struct CustomData_MeshMasks * | cddata_mask | ||
| ) |
Referenced by BKE_object_data_transfer_ex(), and updateDepsgraph().
| void BKE_mesh_remap_calc_verts_from_mesh | ( | const int | mode, |
| const struct SpaceTransform * | space_transform, | ||
| const float | max_dist, | ||
| const float | ray_radius, | ||
| const struct MVert * | verts_dst, | ||
| const int | numverts_dst, | ||
| const bool | dirty_nors_dst, | ||
| struct Mesh * | me_src, | ||
| MeshPairRemap * | r_map | ||
| ) |
Referenced by BKE_object_data_transfer_ex().
| void BKE_mesh_remap_find_best_match_from_mesh | ( | const struct MVert * | verts_dst, |
| const int | numverts_dst, | ||
| struct Mesh * | me_src, | ||
| struct SpaceTransform * | r_space_transform | ||
| ) |
Referenced by BKE_object_data_transfer_ex().
| void BKE_mesh_remap_free | ( | MeshPairRemap * | map | ) |
Definition at line 365 of file mesh_remap.c.
References BLI_memarena_free(), MeshPairRemap::items, MeshPairRemap::items_num, MeshPairRemap::mem, and NULL.
Referenced by BKE_mesh_remap_init(), and BKE_object_data_transfer_ex().
| void BKE_mesh_remap_init | ( | MeshPairRemap * | map, |
| const int | items_num | ||
| ) |
Definition at line 353 of file mesh_remap.c.
References BKE_mesh_remap_free(), BLI_memarena_alloc(), BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, MeshPairRemap::items, MeshPairRemap::items_num, and MeshPairRemap::mem.
Referenced by BKE_mesh_remap_calc_edges_from_mesh(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remap_calc_polys_from_mesh(), and BKE_mesh_remap_calc_verts_from_mesh().
| void BKE_mesh_remap_item_define_invalid | ( | MeshPairRemap * | map, |
| const int | index | ||
| ) |
Definition at line 406 of file mesh_remap.c.
References mesh_remap_item_define(), and NULL.
Referenced by BKE_mesh_remap_calc_edges_from_mesh(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remap_calc_polys_from_mesh(), and BKE_mesh_remap_calc_verts_from_mesh().