Blender  V2.93
BKE_object_facemap.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 struct ListBase;
29 struct Object;
30 struct bFaceMap;
31 
32 struct bFaceMap *BKE_object_facemap_add(struct Object *ob);
33 struct bFaceMap *BKE_object_facemap_add_name(struct Object *ob, const char *name);
34 void BKE_object_facemap_remove(struct Object *ob, struct bFaceMap *fmap);
35 void BKE_object_facemap_clear(struct Object *ob);
36 
37 int BKE_object_facemap_name_index(struct Object *ob, const char *name);
38 void BKE_object_facemap_unique_name(struct Object *ob, struct bFaceMap *fmap);
39 struct bFaceMap *BKE_object_facemap_find_name(struct Object *ob, const char *name);
40 void BKE_object_facemap_copy_list(struct ListBase *outbase, const struct ListBase *inbase);
41 
43  struct Object *ob_dst,
44  int *r_map_len);
45 void BKE_object_facemap_index_map_apply(int *fmap, int fmap_len, const int *map, int map_len);
46 
47 #ifdef __cplusplus
48 }
49 #endif
int BKE_object_facemap_name_index(struct Object *ob, const char *name)
void BKE_object_facemap_remove(struct Object *ob, struct bFaceMap *fmap)
void BKE_object_facemap_clear(struct Object *ob)
void BKE_object_facemap_copy_list(struct ListBase *outbase, const struct ListBase *inbase)
int * BKE_object_facemap_index_map_create(struct Object *ob_src, struct Object *ob_dst, int *r_map_len)
void BKE_object_facemap_index_map_apply(int *fmap, int fmap_len, const int *map, int map_len)
void BKE_object_facemap_unique_name(struct Object *ob, struct bFaceMap *fmap)
struct bFaceMap * BKE_object_facemap_add(struct Object *ob)
struct bFaceMap * BKE_object_facemap_find_name(struct Object *ob, const char *name)
struct bFaceMap * BKE_object_facemap_add_name(struct Object *ob, const char *name)
char name[64]