Blender V5.3
sculpt_mask_extract.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "DNA_mesh_types.h"
10#include "DNA_modifier_types.h"
11#include "DNA_object_types.h"
12
13#include "BKE_attribute.hh"
14#include "BKE_context.hh"
15#include "BKE_customdata.hh"
16#include "BKE_editmesh.hh"
17#include "BKE_lib_id.hh"
18#include "BKE_mesh.hh"
19#include "BKE_modifier.hh"
20#include "BKE_object_types.hh"
21#include "BKE_paint.hh"
22#include "BKE_shrinkwrap.hh"
23
24#include "BLI_math_vector_c.hh"
25
26#include "BLT_translation.hh"
27
28#include "DEG_depsgraph.hh"
30
31#include "RNA_access.hh"
32#include "RNA_define.hh"
33
34#include "WM_api.hh"
35#include "WM_types.hh"
36
37#include "ED_mesh.hh"
38#include "ED_object.hh"
39#include "ED_screen.hh"
40#include "ED_sculpt.hh"
41#include "ED_undo.hh"
42
43#include "bmesh_tools.hh"
44
45#include "MEM_guardedalloc.h"
46
47#include "sculpt_intern.hh"
48
50
52{
54 if (ob != nullptr && ob->mode == OB_MODE_SCULPT) {
55 if (ob->runtime->sculpt_session->bm) {
56 CTX_wm_operator_poll_msg_set(C, "The geometry cannot be extracted with dyntopo activated");
57 return false;
58 }
60 }
61 return false;
62}
63
65 /* For extracting face sets. */
67
68 /* For extracting mask. */
70
71 /* Common parameters. */
76};
77
78/* Function that tags in BMesh the faces that should be deleted in the extracted object. */
80
82 wmOperator *op,
85{
86 Main *bmain = CTX_data_main(C);
88 View3D *v3d = CTX_wm_view3d(C);
89 Scene *scene = CTX_data_scene(C);
90 Depsgraph &depsgraph = *CTX_data_depsgraph_on_load(C);
91
93
94 /* Ensures that deformation from sculpt mode is taken into account before duplicating the mesh to
95 * extract the geometry. */
97
98 Mesh *mesh = id_cast<Mesh *>(ob->data);
99 Mesh *new_mesh = id_cast<Mesh *>(BKE_id_copy(bmain, &mesh->id));
100
101 const BMAllocTemplate allocsize = BMALLOC_TEMPLATE_FROM_ME(new_mesh);
102 BMeshCreateParams bm_create_params{};
103 bm_create_params.use_toolflags = true;
104 BMesh *bm = BM_mesh_create(&allocsize, &bm_create_params);
105
106 BMeshFromMeshParams mesh_to_bm_params{};
107 mesh_to_bm_params.calc_face_normal = true;
108 mesh_to_bm_params.calc_vert_normal = true;
109 BM_mesh_bm_from_me(bm, new_mesh, &mesh_to_bm_params);
110
111 /* Generate the tags for deleting geometry in the extracted object. */
112 tag_fn(bm, params);
113
114 /* Delete all tagged faces. */
117
118 BMVert *v;
119 BMEdge *ed;
120 BMIter iter;
121 BM_ITER_MESH (v, &iter, bm, BM_VERTS_OF_MESH) {
122 mul_v3_v3(v->co, ob->scale);
123 }
124
125 if (params->add_boundary_loop) {
128 }
130
131 for (int repeat = 0; repeat < params->num_smooth_iterations; repeat++) {
133 BM_ITER_MESH (v, &iter, bm, BM_VERTS_OF_MESH) {
135 }
136 for (int i = 0; i < 3; i++) {
137 if (!EDBM_smooth_vert(bm, op)) {
138 continue;
139 }
140 }
141
143 BM_ITER_MESH (v, &iter, bm, BM_VERTS_OF_MESH) {
145 }
146 for (int i = 0; i < 1; i++) {
147 if (!EDBM_smooth_vert(bm, op)) {
148 continue;
149 }
150 }
151 }
152 }
153
155
156 BKE_id_free(bmain, new_mesh);
157 BMeshToMeshParams bm_to_mesh_params{};
158 bm_to_mesh_params.calc_object_remap = false;
159 new_mesh = BKE_mesh_from_bmesh_nomain(bm, &bm_to_mesh_params, mesh);
160
161 /* Remove the face sets as they need to be recreated when entering Sculpt Mode in the new object.
162 * TODO(pablodobarro): In the future we can try to preserve them from the original mesh. */
163 new_mesh->attributes_for_write().remove(".sculpt_face_set");
164
165 /* Remove the mask from the new object so it can be sculpted directly after extracting. */
166 new_mesh->attributes_for_write().remove(".sculpt_mask");
167
169
170 if (new_mesh->verts_num == 0) {
171 BKE_id_free(bmain, new_mesh);
172 return OPERATOR_FINISHED;
173 }
174
175 ushort local_view_bits = 0;
176 if (v3d && v3d->localvd) {
177 local_view_bits = v3d->local_view_uid;
178 }
180 C, OB_MESH, nullptr, ob->loc, ob->rot, false, local_view_bits);
181 BKE_mesh_nomain_to_mesh(new_mesh, id_cast<Mesh *>(new_ob->data), new_ob);
182
183 if (params->apply_shrinkwrap) {
185 }
186
187 if (params->add_solidify) {
189 op->reports, bmain, scene, new_ob, "geometry_extract_solidify", eModifierType_Solidify);
190 SolidifyModifierData *sfmd = reinterpret_cast<SolidifyModifierData *>(
191 BKE_modifiers_findby_name(new_ob, "mask_extract_solidify"));
192 if (sfmd) {
193 sfmd->offset = -0.05f;
194 }
195 }
196
202
203 return OPERATOR_FINISHED;
204}
205
207{
208 const float threshold = params->mask_threshold;
209
211 const int cd_vert_mask_offset = CustomData_get_offset_named(
212 &bm->vdata, CD_PROP_FLOAT, ".sculpt_mask");
213
214 BMFace *f;
215 BMIter iter;
216 BM_ITER_MESH (f, &iter, bm, BM_FACES_OF_MESH) {
217 bool keep_face = true;
218 BMVert *v;
219 BMIter face_iter;
222 continue;
223 };
224 BM_ITER_ELEM (v, &face_iter, f, BM_VERTS_OF_FACE) {
225 const float mask = BM_ELEM_CD_GET_FLOAT(v, cd_vert_mask_offset);
226 if (mask < threshold) {
227 keep_face = false;
228 break;
229 }
230 }
231 BM_elem_flag_set(f, BM_ELEM_TAG, !keep_face);
232 }
233}
234
236{
237 const int tag_face_set_id = params->active_face_set;
238
240 const int cd_face_sets_offset = CustomData_get_offset_named(
241 &bm->pdata, CD_PROP_INT32, ".sculpt_face_set");
242
243 BMFace *f;
244 BMIter iter;
245 BM_ITER_MESH (f, &iter, bm, BM_FACES_OF_MESH) {
246 const int face_set = BM_ELEM_CD_GET_INT(f, cd_face_sets_offset);
247 BM_elem_flag_set(f, BM_ELEM_TAG, face_set != tag_face_set_id);
248 }
249}
250
252{
254 Mesh *mesh = id_cast<Mesh *>(ob->data);
255 if (!mesh->attributes().contains(".sculpt_mask")) {
256 return OPERATOR_CANCELLED;
257 }
258
260 params.mask_threshold = RNA_float_get(op->ptr, "mask_threshold");
261 params.num_smooth_iterations = RNA_int_get(op->ptr, "smooth_iterations");
262 params.add_boundary_loop = RNA_boolean_get(op->ptr, "add_boundary_loop");
263 params.apply_shrinkwrap = RNA_boolean_get(op->ptr, "apply_shrinkwrap");
264 params.add_solidify = RNA_boolean_get(op->ptr, "add_solidify");
265
266 /* Push an undo step prior to extraction.
267 * NOTE: A second push happens after the operator due to
268 * the OPTYPE_UNDO flag; having an initial undo step here
269 * is just needed to preserve the active object pointer.
270 *
271 * Fixes #103261.
272 */
273 ED_undo_push_op(C, op);
274
276}
277
279{
281 C, op, e, IFACE_("Create Mesh From Paint Mask"), IFACE_("Extract"));
282}
283
285{
286 RNA_def_boolean(srna,
287 "add_boundary_loop",
288 true,
289 "Add Boundary Loop",
290 "Add an extra edge loop to better preserve the shape when applying a "
291 "subdivision surface modifier");
292 RNA_def_int(srna,
293 "smooth_iterations",
294 4,
295 0,
296 INT_MAX,
297 "Smooth Iterations",
298 "Smooth iterations applied to the extracted mesh",
299 0,
300 20);
301 RNA_def_boolean(srna,
302 "apply_shrinkwrap",
303 true,
304 "Project to Sculpt",
305 "Project the extracted mesh into the original sculpt");
306 RNA_def_boolean(srna,
307 "add_solidify",
308 true,
309 "Extract as Solid",
310 "Extract the mask as a solid object with a solidify modifier");
311}
312
314{
315 ot->name = "Mask Extract";
316 ot->description = "Create a new mesh object from the current paint mask";
317 ot->idname = "SCULPT_OT_paint_mask_extract";
318
322
324
326 ot->srna,
327 "mask_threshold",
328 0.5f,
329 0.0f,
330 1.0f,
331 "Threshold",
332 "Minimum mask value to consider the vertex valid to extract a face from the original mesh",
333 0.0f,
334 1.0f);
335
337}
338
340{
341 using namespace blender::ed;
342 if (!CTX_wm_region_view3d(C)) {
343 return OPERATOR_CANCELLED;
344 }
345 ARegion *region = CTX_wm_region(C);
346
347 const float mval[2] = {float(event->xy[0] - region->winrct.xmin),
348 float(event->xy[1] - region->winrct.ymin)};
349
351 const int face_set_id = sculpt_paint::face_set::active_update_and_get(C, ob, mval);
352 if (face_set_id == face_set_none_id) {
353 return OPERATOR_CANCELLED;
354 }
355
357 params.active_face_set = face_set_id;
358 params.num_smooth_iterations = 0;
359 params.add_boundary_loop = false;
360 params.apply_shrinkwrap = true;
361 params.add_solidify = true;
363}
364
366{
367 ot->name = "Face Set Extract";
368 ot->description = "Create a new mesh object from the selected face set";
369 ot->idname = "SCULPT_OT_face_set_extract";
370
373
375
377}
378
379static void slice_paint_mask(BMesh *bm, bool invert, bool fill_holes, float mask_threshold)
380{
381 BMVert *v;
382 BMFace *f;
383 BMIter iter;
384 BMIter face_iter;
385
386 /* Delete all masked faces */
387 const int cd_vert_mask_offset = CustomData_get_offset_named(
388 &bm->vdata, CD_PROP_FLOAT, ".sculpt_mask");
389 BLI_assert(cd_vert_mask_offset != -1);
391
392 BM_ITER_MESH (f, &iter, bm, BM_FACES_OF_MESH) {
393 bool keep_face = true;
394 BM_ITER_ELEM (v, &face_iter, f, BM_VERTS_OF_FACE) {
395 const float mask = BM_ELEM_CD_GET_FLOAT(v, cd_vert_mask_offset);
396 if (mask < mask_threshold) {
397 keep_face = false;
398 break;
399 }
400 }
402 keep_face = false;
403 };
404 /* This invert behavior is fragile, as it potentially marks faces which are hidden */
405 if (invert) {
406 keep_face = !keep_face;
407 }
408 BM_elem_flag_set(f, BM_ELEM_TAG, keep_face);
409 }
410
414
415 if (fill_holes) {
416 BM_mesh_edgenet(bm, false, true);
420 "triangulate faces=%hf quad_method=%i ngon_method=%i",
422 0,
423 0);
424
428 "recalc_face_normals faces=%hf",
431 }
432}
433
435{
436 using namespace blender::ed;
437 const Scene &scene = *CTX_data_scene(C);
438 Main &bmain = *CTX_data_main(C);
440 View3D *v3d = CTX_wm_view3d(C);
441 Mesh *mesh = id_cast<Mesh *>(ob.data);
442
443 if (!mesh->attributes().contains(".sculpt_mask")) {
444 return OPERATOR_CANCELLED;
445 }
446
447 bool create_new_object = RNA_boolean_get(op->ptr, "new_object");
448 bool fill_holes = RNA_boolean_get(op->ptr, "fill_holes");
449 float mask_threshold = RNA_float_get(op->ptr, "mask_threshold");
450
451 Mesh *new_mesh = id_cast<Mesh *>(BKE_id_copy(&bmain, &mesh->id));
452
453 /* Undo crashes when new object is created in the middle of a sculpt, see #87243. */
454 if (ob.mode == OB_MODE_SCULPT && !create_new_object) {
456 }
457
458 const BMAllocTemplate allocsize = BMALLOC_TEMPLATE_FROM_ME(new_mesh);
459 BMeshCreateParams bm_create_params{};
460 bm_create_params.use_toolflags = true;
461 BMesh *bm = BM_mesh_create(&allocsize, &bm_create_params);
462
463 BMeshFromMeshParams mesh_to_bm_params{};
464 mesh_to_bm_params.calc_face_normal = true;
465 BM_mesh_bm_from_me(bm, new_mesh, &mesh_to_bm_params);
466
467 slice_paint_mask(bm, false, fill_holes, mask_threshold);
468 BKE_id_free(&bmain, new_mesh);
469 BMeshToMeshParams bm_to_mesh_params{};
470 bm_to_mesh_params.calc_object_remap = false;
471 new_mesh = BKE_mesh_from_bmesh_nomain(bm, &bm_to_mesh_params, mesh);
473
474 if (create_new_object) {
475 ushort local_view_bits = 0;
476 if (v3d && v3d->localvd) {
477 local_view_bits = v3d->local_view_uid;
478 }
480 C, OB_MESH, nullptr, ob.loc, ob.rot, false, local_view_bits);
481 Mesh *new_ob_mesh = id_cast<Mesh *>(BKE_id_copy(&bmain, &mesh->id));
482
483 const BMAllocTemplate allocsize_new_ob = BMALLOC_TEMPLATE_FROM_ME(new_ob_mesh);
484 bm = BM_mesh_create(&allocsize_new_ob, &bm_create_params);
485
486 BM_mesh_bm_from_me(bm, new_ob_mesh, &mesh_to_bm_params);
487
488 slice_paint_mask(bm, true, fill_holes, mask_threshold);
489 BKE_id_free(&bmain, new_ob_mesh);
490 new_ob_mesh = BKE_mesh_from_bmesh_nomain(bm, &bm_to_mesh_params, mesh);
492
493 /* Remove the mask from the new object so it can be sculpted directly after slicing. */
494 new_ob_mesh->attributes_for_write().remove(".sculpt_mask");
495
496 Mesh *new_mesh = id_cast<Mesh *>(new_ob->data);
497 BKE_mesh_nomain_to_mesh(new_ob_mesh, new_mesh, new_ob);
503 }
504
505 mesh = id_cast<Mesh *>(ob.data);
506 BKE_mesh_nomain_to_mesh(new_mesh, mesh, &ob);
507
508 if (ob.mode == OB_MODE_SCULPT) {
509 if (mesh->attributes().contains(".sculpt_face_set")) {
510 /* Assign a new face set ID to the new faces created by the slice operation. */
511 const int next_face_set_id = sculpt_paint::face_set::find_next_available_id(ob);
513 }
514 if (!create_new_object) {
517 }
518 }
519
523
524 return OPERATOR_FINISHED;
525}
526
528{
529 PropertyRNA *prop;
530
531 ot->name = "Mask Slice";
532 ot->description = "Slices the paint mask from the mesh";
533 ot->idname = "SCULPT_OT_paint_mask_slice";
534
537
539
541 ot->srna,
542 "mask_threshold",
543 0.5f,
544 0.0f,
545 1.0f,
546 "Threshold",
547 "Minimum mask value to consider the vertex valid to extract a face from the original mesh",
548 0.0f,
549 1.0f);
550 prop = RNA_def_boolean(
551 ot->srna, "fill_holes", true, "Fill Holes", "Fill holes after slicing the mask");
553 prop = RNA_def_boolean(ot->srna,
554 "new_object",
555 true,
556 "Slice to New Object",
557 "Create a new object from the sliced mask");
559}
560} // namespace blender::ed::sculpt_paint
CustomData interface, see also DNA_customdata_types.h.
#define IFACE_(msgid)
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
#define C
Definition RandGen.cpp:29
#define NC_GEOM
Definition WM_types.hh:406
#define ND_DATA
Definition WM_types.hh:552
#define ND_MODIFIER
Definition WM_types.hh:503
#define NC_OBJECT
Definition WM_types.hh:392
#define BM_ELEM_CD_GET_FLOAT(ele, offset)
#define BM_ELEM_CD_GET_INT(ele, offset)
#define BM_elem_flag_set(ele, hflag, val)
#define BM_elem_flag_test_bool(ele, hflag)
#define BM_ITER_ELEM(ele, iter, data, itype)
#define BM_ITER_MESH(ele, iter, bm, itype)
#define BMALLOC_TEMPLATE_FROM_ME(...)
#define BMO_FLAG_DEFAULTS
#define INT_MAX
float2x2 invert(float2x2 mat)
ModifierData * modifier_add(ReportList *reports, Main *bmain, Scene *scene, Object *ob, const char *name, int type)
Object * add_type(bContext *C, int type, const char *name, const float loc[3], const float rot[3], bool enter_editmode, unsigned short local_view_bits) ATTR_NONNULL(1) ATTR_RETURNS_NONNULL
void initialize_none_to_id(Mesh *mesh, int new_id)
int active_update_and_get(bContext *C, Object &ob, const float mval_fl[2])
int find_next_available_id(const Mesh &mesh)
void geometry_begin(const Scene &scene, Object &ob, const wmOperator *op)
void SCULPT_OT_paint_mask_slice(wmOperatorType *ot)
static void geometry_extract_tag_masked_faces(BMesh *bm, GeometryExtractParams *params)
static wmOperatorStatus paint_mask_extract_invoke(bContext *C, wmOperator *op, const wmEvent *e)
static bool geometry_extract_poll(bContext *C)
static constexpr int face_set_none_id
void(BMesh *, GeometryExtractParams *) GeometryExtractTagMeshFunc
static void geometry_extract_props(StructRNA *srna)
void object_sculpt_mode_exit(Main &bmain, Depsgraph &depsgraph, Scene &scene, Object &ob)
static wmOperatorStatus paint_mask_slice_exec(bContext *C, wmOperator *op)
static wmOperatorStatus geometry_extract_apply(bContext *C, wmOperator *op, GeometryExtractTagMeshFunc *tag_fn, GeometryExtractParams *params)
static wmOperatorStatus paint_mask_extract_exec(bContext *C, wmOperator *op)
static void slice_paint_mask(BMesh *bm, bool invert, bool fill_holes, float mask_threshold)
static wmOperatorStatus face_set_extract_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void SCULPT_OT_paint_mask_extract(wmOperatorType *ot)
static void geometry_extract_tag_face_set(BMesh *bm, GeometryExtractParams *params)
void SCULPT_OT_face_set_extract(wmOperatorType *ot)
void BM_mesh_delete_hflag_context(BMesh *bm, const char hflag, const int type)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void BM_mesh_elem_hflag_enable_all(BMesh *bm, const char htype, const char hflag, const bool respecthide)
ModifierData * BKE_modifiers_findby_name(const Object *ob, const char *name)
void BM_mesh_free(BMesh *bm)
BMesh Free Mesh.
bool EDBM_extrude_edges_indiv(BMesh *bm, wmOperator *op, char hflag, bool use_normal_flip)
Depsgraph * CTX_data_depsgraph_pointer(const bContext *C)
void BKE_mesh_nomain_to_mesh(Mesh *mesh_src, Mesh *mesh_dst, Object *ob, bool process_shape_keys=true)
unsigned short ushort
Definition BKE_text.h:56
Mesh * BKE_mesh_from_bmesh_nomain(BMesh *bm, const BMeshToMeshParams *params, const Mesh *me_settings)
int RNA_int_get(PointerRNA *ptr, const char *name)
void BM_mesh_elem_hflag_disable_all(BMesh *bm, const char htype, const char hflag, const bool respecthide)
ATTR_WARN_UNUSED_RESULT const BMVert * v
void BKE_shrinkwrap_mesh_nearest_surface_deform(Depsgraph *depsgraph, Scene *scene, Object *ob_source, Object *ob_target)
void ED_undo_push_op(bContext *C, wmOperator *op)
Definition ed_undo.cc:553
bool BM_vert_is_boundary(const BMVert *v)
void BKE_sculptsession_free_pbvh(Object &object)
void BM_mesh_bm_from_me(BMesh *bm, const Mesh *mesh, const BMeshFromMeshParams *params)
Mesh -> BMesh.
PropertyRNA * RNA_def_float_factor(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void BM_mesh_edgenet(BMesh *bm, const bool use_edge_tag, const bool use_new_face_tag)
void CTX_wm_operator_poll_msg_set(bContext *C, const char *msg)
MINLINE void mul_v3_v3(float r[3], const float a[3])
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_mesh_batch_cache_dirty_tag(Mesh *mesh, eMeshBatchDirtyMode mode)
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C, bool rna_write_check=false)
int CustomData_get_offset_named(const CustomData *data, eCustomDataType type, StringRef name)
BLI_INLINE bool BM_edge_is_boundary(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
bool BMO_op_callf(BMesh *bm, int flag, const char *fmt,...)
RegionView3D * CTX_wm_region_view3d(const bContext *C)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void BKE_id_free(Main *bmain, void *idv)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
wmOperatorStatus WM_operator_props_popup_confirm_ex(bContext *C, wmOperator *op, const wmEvent *, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
Depsgraph * CTX_data_depsgraph_on_load(const bContext *C)
Main * CTX_data_main(const bContext *C)
@ ID_RECALC_GEOMETRY
Definition DNA_ID.h:1074
@ PROP_SKIP_SAVE
Definition RNA_types.hh:414
void DEG_relations_tag_update(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
@ OPTYPE_REGISTER
Definition WM_types.hh:188
@ OPTYPE_UNDO
Definition WM_types.hh:190
@ OPTYPE_DEPENDS_ON_CURSOR
Definition WM_types.hh:228
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
bool ED_operator_object_active_editable_mesh(bContext *C)
@ BKE_MESH_BATCH_DIRTY_ALL
Definition BKE_mesh.h:48
bool EDBM_smooth_vert(BMesh *bm, wmOperator *op)
ID * BKE_id_copy(Main *bmain, const ID *id)
Definition lib_id.cc:856
BMesh * BM_mesh_create(const BMAllocTemplate *allocsize, const BMeshCreateParams *params)
BMesh Make Mesh.
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
Object * CTX_data_active_object(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
float RNA_float_get(PointerRNA *ptr, const char *name)
View3D * CTX_wm_view3d(const bContext *C)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
void BM_mesh_normals_update(BMesh *bm)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
CustomData pdata
CustomData vdata
bke::ObjectRuntime * runtime
struct View3D * localvd
unsigned short local_view_uid
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1125
const char * description
Definition WM_types.hh:1115
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1165
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
Definition WM_types.hh:1141
struct ReportList * reports