Blender V5.0
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
10
11#include "DNA_material_types.h"
12
13#include "bmesh.hh"
14
16
17#include "intern/bmesh_operators_private.hh" /* own include */
18
20{
21 const float offset = BMO_slot_float_get(op->slots_in, "thickness");
22 const float offset_fac = BMO_slot_float_get(op->slots_in, "offset");
23 const bool use_replace = BMO_slot_bool_get(op->slots_in, "use_replace");
24 const bool use_boundary = BMO_slot_bool_get(op->slots_in, "use_boundary");
25 const bool use_even_offset = BMO_slot_bool_get(op->slots_in, "use_even_offset");
26 const bool use_relative_offset = BMO_slot_bool_get(op->slots_in, "use_relative_offset");
27 const bool use_crease = BMO_slot_bool_get(op->slots_in, "use_crease");
28 const float crease_weight = BMO_slot_float_get(op->slots_in, "crease_weight");
29
32
34 offset,
35 offset_fac,
36 0.0f,
37 use_replace,
38 use_boundary,
39 use_even_offset,
40 use_relative_offset,
41 use_crease,
42 crease_weight,
43 /* dummy vgroup */
44 -1,
45 false,
46 0,
47 MAXMAT,
48 true);
49
51}
#define MAXMAT
@ BM_ELEM_TAG
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]