Blender V4.3
bmo_wireframe.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11#include "DNA_material_types.h"
12
13#include "BLI_sys_types.h"
14#include "BLI_utildefines.h"
15
16#include "bmesh.hh"
17
19
20#include "intern/bmesh_operators_private.hh" /* own include */
21
23{
24 const float offset = BMO_slot_float_get(op->slots_in, "thickness");
25 const float offset_fac = BMO_slot_float_get(op->slots_in, "offset");
26 const bool use_replace = BMO_slot_bool_get(op->slots_in, "use_replace");
27 const bool use_boundary = BMO_slot_bool_get(op->slots_in, "use_boundary");
28 const bool use_even_offset = BMO_slot_bool_get(op->slots_in, "use_even_offset");
29 const bool use_relative_offset = BMO_slot_bool_get(op->slots_in, "use_relative_offset");
30 const bool use_crease = BMO_slot_bool_get(op->slots_in, "use_crease");
31 const float crease_weight = BMO_slot_float_get(op->slots_in, "crease_weight");
32
35
37 offset,
38 offset_fac,
39 0.0f,
40 use_replace,
41 use_boundary,
42 use_even_offset,
43 use_relative_offset,
44 use_crease,
45 crease_weight,
46 /* dummy vgroup */
47 -1,
48 false,
49 0,
50 MAXMAT,
51 true);
52
54}
#define MAXMAT
@ BM_ELEM_TAG
ATTR_WARN_UNUSED_RESULT BMesh * bm
void BM_mesh_elem_hflag_disable_all(BMesh *bm, const char htype, const char hflag, const bool respecthide)
#define BM_FACE
#define BM_EDGE
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 int mat_max, const bool use_tag)
void bmo_wireframe_exec(BMesh *bm, BMOperator *op)
struct BMOpSlot slots_out[BMO_OP_MAX_SLOTS]
struct BMOpSlot slots_in[BMO_OP_MAX_SLOTS]