Blender  V3.3
ED_sculpt.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct ARegion;
15 struct Object;
16 struct UndoType;
17 struct ViewContext;
18 struct bContext;
19 struct rcti;
20 struct wmMsgSubscribeKey;
21 struct wmMsgSubscribeValue;
23 
24 /* sculpt.c */
25 
26 void ED_operatortypes_sculpt(void);
27 void ED_sculpt_redraw_planes_get(float planes[4][4], struct ARegion *region, struct Object *ob);
29  struct ViewContext *vc,
30  const struct rcti *rect,
31  bool select);
32 
33 /* sculpt_transform.c */
34 
35 void ED_sculpt_update_modal_transform(struct bContext *C, struct Object *ob);
36 void ED_sculpt_init_transform(struct bContext *C, struct Object *ob);
37 void ED_sculpt_end_transform(struct bContext *C, struct Object *ob);
38 
39 /* sculpt_undo.c */
40 
42 void ED_sculpt_undosys_type(struct UndoType *ut);
43 
44 void ED_sculpt_undo_geometry_begin(struct Object *ob, const char *name);
45 void ED_sculpt_undo_geometry_end(struct Object *ob);
46 
47 /* Face sets. */
48 
50 void ED_sculpt_face_sets_initialize_none_to_id(struct Mesh *mesh, int new_id);
51 
53  struct Object *ob,
54  const float mval_fl[2]);
55 
56 /* Undo for changes happening on a base mesh for multires sculpting.
57  * if there is no multi-res sculpt active regular undo is used. */
58 void ED_sculpt_undo_push_multires_mesh_begin(struct bContext *C, const char *str);
59 void ED_sculpt_undo_push_multires_mesh_end(struct bContext *C, const char *str);
60 
61 #ifdef __cplusplus
62 }
63 #endif
bool ED_sculpt_mask_box_select(struct bContext *C, struct ViewContext *vc, const struct rcti *rect, bool select)
int ED_sculpt_face_sets_find_next_available_id(struct Mesh *mesh)
void ED_sculpt_init_transform(struct bContext *C, struct Object *ob)
void ED_sculpt_undo_geometry_begin(struct Object *ob, const char *name)
Definition: sculpt_undo.c:1833
void ED_sculpt_redraw_planes_get(float planes[4][4], struct ARegion *region, struct Object *ob)
Definition: sculpt.c:1508
void ED_sculpt_undo_geometry_end(struct Object *ob)
Definition: sculpt_undo.c:1839
void ED_sculpt_face_sets_initialize_none_to_id(struct Mesh *mesh, int new_id)
void ED_sculpt_undosys_type(struct UndoType *ut)
Definition: sculpt_undo.c:1845
void ED_sculpt_undo_push_multires_mesh_begin(struct bContext *C, const char *str)
Definition: sculpt_undo.c:1940
void ED_sculpt_undo_push_multires_mesh_end(struct bContext *C, const char *str)
Definition: sculpt_undo.c:1956
void ED_sculpt_end_transform(struct bContext *C, struct Object *ob)
void ED_sculpt_update_modal_transform(struct bContext *C, struct Object *ob)
void ED_operatortypes_sculpt(void)
Definition: sculpt_ops.c:1124
int ED_sculpt_face_sets_active_update_and_get(struct bContext *C, struct Object *ob, const float mval_fl[2])
#define C
Definition: RandGen.cpp:25
__forceinline const avxb select(const avxb &m, const avxb &t, const avxb &f)
Definition: avxb.h:154
#define str(s)