Blender V5.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
10
11#include "DNA_material_types.h"
12
13#include "bmesh.hh"
14
16
17#include "intern/bmesh_operators_private.hh" /* own include */
18
19namespace blender {
20
22{
23 const float offset = BMO_slot_float_get(op->slots_in, "thickness");
24 const float offset_fac = BMO_slot_float_get(op->slots_in, "offset");
25 const bool use_replace = BMO_slot_bool_get(op->slots_in, "use_replace");
26 const bool use_boundary = BMO_slot_bool_get(op->slots_in, "use_boundary");
27 const bool use_even_offset = BMO_slot_bool_get(op->slots_in, "use_even_offset");
28 const bool use_relative_offset = BMO_slot_bool_get(op->slots_in, "use_relative_offset");
29 const bool use_crease = BMO_slot_bool_get(op->slots_in, "use_crease");
30 const float crease_weight = BMO_slot_float_get(op->slots_in, "crease_weight");
31
34
36 offset,
37 offset_fac,
38 0.0f,
39 use_replace,
40 use_boundary,
41 use_even_offset,
42 use_relative_offset,
43 use_crease,
44 crease_weight,
45 /* dummy vgroup */
46 -1,
47 false,
48 0,
49 MAXMAT,
50 true);
51
53}
54
55} // namespace blender
#define MAXMAT
BMesh Iterators.
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_wireframe_exec(BMesh *bm, BMOperator *op)
void BM_mesh_elem_hflag_disable_all(BMesh *bm, const char htype, const char hflag, const bool respecthide)
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)
bool BMO_slot_bool_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)
struct BMOpSlot slots_in[BMO_OP_MAX_SLOTS]
struct BMOpSlot slots_out[BMO_OP_MAX_SLOTS]