Blender  V3.3
bmo_wireframe.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
9 #include "DNA_material_types.h"
10 
11 #include "BLI_sys_types.h"
12 #include "BLI_utildefines.h"
13 
14 #include "bmesh.h"
15 
16 #include "tools/bmesh_wireframe.h"
17 
18 #include "intern/bmesh_operators_private.h" /* own include */
19 
21 {
22  const float offset = BMO_slot_float_get(op->slots_in, "thickness");
23  const float offset_fac = BMO_slot_float_get(op->slots_in, "offset");
24  const bool use_replace = BMO_slot_bool_get(op->slots_in, "use_replace");
25  const bool use_boundary = BMO_slot_bool_get(op->slots_in, "use_boundary");
26  const bool use_even_offset = BMO_slot_bool_get(op->slots_in, "use_even_offset");
27  const bool use_relative_offset = BMO_slot_bool_get(op->slots_in, "use_relative_offset");
28  const bool use_crease = BMO_slot_bool_get(op->slots_in, "use_crease");
29  const float crease_weight = BMO_slot_float_get(op->slots_in, "crease_weight");
30 
33 
35  offset,
36  offset_fac,
37  0.0f,
38  use_replace,
39  use_boundary,
40  use_even_offset,
41  use_relative_offset,
42  use_crease,
43  crease_weight,
44  /* dummy vgroup */
45  -1,
46  false,
47  0,
48  MAXMAT,
49  true);
50 
52 }
#define MAXMAT
@ BM_FACE
Definition: bmesh_class.h:386
@ BM_EDGE
Definition: bmesh_class.h:384
@ BM_ELEM_TAG
Definition: bmesh_class.h:484
ATTR_WARN_UNUSED_RESULT BMesh * bm
void BM_mesh_elem_hflag_disable_all(BMesh *bm, const char htype, const char hflag, const bool respecthide)
void BMO_slot_buffer_hflag_enable(BMesh *bm, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, char htype, char hflag, bool do_flush)
BMO_FLAG_BUFFER.
float BMO_slot_float_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
void BMO_slot_buffer_from_enabled_hflag(BMesh *bm, BMOperator *op, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, char htype, char hflag)
bool BMO_slot_bool_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
void BM_mesh_wireframe(BMesh *bm, const float offset, const float offset_fac, const float offset_fac_vg, const bool use_replace, const bool use_boundary, const bool use_even_offset, const bool use_relative_offset, const bool use_crease, const float crease_weight, const int defgrp_index, const bool defgrp_invert, const short mat_offset, const short mat_max, const bool use_tag)
void bmo_wireframe_exec(BMesh *bm, BMOperator *op)
Definition: bmo_wireframe.c:20
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
struct BMOpSlot slots_out[BMO_OP_MAX_SLOTS]
struct BMOpSlot slots_in[BMO_OP_MAX_SLOTS]