Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_mesh.h
| Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | |||||
| void BKE_mesh_eval_delete(struct Mesh *mesh_eval); | void BKE_mesh_eval_delete(struct Mesh *mesh_eval); | ||||
| /* Performs copy for use during evaluation, | /* Performs copy for use during evaluation, | ||||
| * optional referencing original arrays to reduce memory. */ | * optional referencing original arrays to reduce memory. */ | ||||
| struct Mesh *BKE_mesh_copy_for_eval(struct Mesh *source, bool reference); | struct Mesh *BKE_mesh_copy_for_eval(struct Mesh *source, bool reference); | ||||
| /* These functions construct a new Mesh, | /* These functions construct a new Mesh, | ||||
| * contrary to BKE_mesh_from_nurbs which modifies ob itself. */ | * contrary to BKE_mesh_to_curve_nurblist which modifies ob itself. */ | ||||
| struct Mesh *BKE_mesh_new_nomain_from_curve(struct Object *ob); | struct Mesh *BKE_mesh_new_nomain_from_curve(const struct Object *ob); | ||||
| struct Mesh *BKE_mesh_new_nomain_from_curve_displist(const struct Object *ob, | struct Mesh *BKE_mesh_new_nomain_from_curve_displist(const struct Object *ob, | ||||
| const struct ListBase *dispbase); | const struct ListBase *dispbase); | ||||
| bool BKE_mesh_ensure_facemap_customdata(struct Mesh *me); | bool BKE_mesh_ensure_facemap_customdata(struct Mesh *me); | ||||
| bool BKE_mesh_clear_facemap_customdata(struct Mesh *me); | bool BKE_mesh_clear_facemap_customdata(struct Mesh *me); | ||||
| float (*BKE_mesh_orco_verts_get(struct Object *ob))[3]; | float (*BKE_mesh_orco_verts_get(struct Object *ob))[3]; | ||||
| void BKE_mesh_orco_verts_transform(struct Mesh *me, float (*orco)[3], int totvert, int invert); | void BKE_mesh_orco_verts_transform(struct Mesh *me, float (*orco)[3], int totvert, int invert); | ||||
| int BKE_mesh_mface_index_validate(struct MFace *mface, | int BKE_mesh_mface_index_validate(struct MFace *mface, | ||||
| struct CustomData *mfdata, | struct CustomData *mfdata, | ||||
| int mfindex, | int mfindex, | ||||
| int nr); | int nr); | ||||
| struct Mesh *BKE_mesh_from_object(struct Object *ob); | struct Mesh *BKE_mesh_from_object(struct Object *ob); | ||||
| void BKE_mesh_assign_object(struct Main *bmain, struct Object *ob, struct Mesh *me); | void BKE_mesh_assign_object(struct Main *bmain, struct Object *ob, struct Mesh *me); | ||||
| void BKE_mesh_from_metaball(struct ListBase *lb, struct Mesh *me); | void BKE_mesh_from_metaball(struct ListBase *lb, struct Mesh *me); | ||||
| int BKE_mesh_nurbs_to_mdata(struct Object *ob, | |||||
| struct MVert **r_allvert, | |||||
| int *r_totvert, | |||||
| struct MEdge **r_alledge, | |||||
| int *r_totedge, | |||||
| struct MLoop **r_allloop, | |||||
| struct MPoly **r_allpoly, | |||||
| int *r_totloop, | |||||
| int *r_totpoly); | |||||
| int BKE_mesh_nurbs_displist_to_mdata(const struct Object *ob, | |||||
| const struct ListBase *dispbase, | |||||
| struct MVert **r_allvert, | |||||
| int *r_totvert, | |||||
| struct MEdge **r_alledge, | |||||
| int *r_totedge, | |||||
| struct MLoop **r_allloop, | |||||
| struct MPoly **r_allpoly, | |||||
| struct MLoopUV **r_alluv, | |||||
| int *r_totloop, | |||||
| int *r_totpoly); | |||||
| void BKE_mesh_from_nurbs_displist(struct Main *bmain, | void BKE_mesh_from_nurbs_displist(struct Main *bmain, | ||||
| struct Object *ob, | struct Object *ob, | ||||
| struct ListBase *dispbase, | struct ListBase *dispbase, | ||||
| const char *obdata_name, | const char *obdata_name, | ||||
| bool temporary); | bool temporary); | ||||
| void BKE_mesh_from_nurbs(struct Main *bmain, struct Object *ob); | |||||
| void BKE_mesh_to_curve_nurblist(const struct Mesh *me, | void BKE_mesh_to_curve_nurblist(const struct Mesh *me, | ||||
| struct ListBase *nurblist, | struct ListBase *nurblist, | ||||
| const int edge_users_test); | const int edge_users_test); | ||||
| void BKE_mesh_to_curve(struct Main *bmain, | void BKE_mesh_to_curve(struct Main *bmain, | ||||
| struct Depsgraph *depsgraph, | struct Depsgraph *depsgraph, | ||||
| struct Scene *scene, | struct Scene *scene, | ||||
| struct Object *ob); | struct Object *ob); | ||||
| void BKE_pointcloud_from_mesh(struct Mesh *me, struct PointCloud *pointcloud); | void BKE_pointcloud_from_mesh(struct Mesh *me, struct PointCloud *pointcloud); | ||||
| ▲ Show 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| /* Low-level custom normals functions. */ | /* Low-level custom normals functions. */ | ||||
| void BKE_lnor_spacearr_init(MLoopNorSpaceArray *lnors_spacearr, | void BKE_lnor_spacearr_init(MLoopNorSpaceArray *lnors_spacearr, | ||||
| const int numLoops, | const int numLoops, | ||||
| const char data_type); | const char data_type); | ||||
| void BKE_lnor_spacearr_clear(MLoopNorSpaceArray *lnors_spacearr); | void BKE_lnor_spacearr_clear(MLoopNorSpaceArray *lnors_spacearr); | ||||
| void BKE_lnor_spacearr_free(MLoopNorSpaceArray *lnors_spacearr); | void BKE_lnor_spacearr_free(MLoopNorSpaceArray *lnors_spacearr); | ||||
| void BKE_lnor_spacearr_tls_init(MLoopNorSpaceArray *lnors_spacearr, | |||||
| MLoopNorSpaceArray *lnors_spacearr_tls); | |||||
| void BKE_lnor_spacearr_tls_join(MLoopNorSpaceArray *lnors_spacearr, | |||||
| MLoopNorSpaceArray *lnors_spacearr_tls); | |||||
| MLoopNorSpace *BKE_lnor_space_create(MLoopNorSpaceArray *lnors_spacearr); | MLoopNorSpace *BKE_lnor_space_create(MLoopNorSpaceArray *lnors_spacearr); | ||||
| void BKE_lnor_space_define(MLoopNorSpace *lnor_space, | void BKE_lnor_space_define(MLoopNorSpace *lnor_space, | ||||
| const float lnor[3], | const float lnor[3], | ||||
| float vec_ref[3], | float vec_ref[3], | ||||
| float vec_other[3], | float vec_other[3], | ||||
| struct BLI_Stack *edge_vectors); | struct BLI_Stack *edge_vectors); | ||||
| void BKE_lnor_space_add_loop(MLoopNorSpaceArray *lnors_spacearr, | void BKE_lnor_space_add_loop(MLoopNorSpaceArray *lnors_spacearr, | ||||
| MLoopNorSpace *lnor_space, | MLoopNorSpace *lnor_space, | ||||
| ▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines | |||||