Blender V4.3
BKE_grease_pencil_vertex_groups.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
13
14#include "BKE_attribute.hh"
15
17
20
22int ensure_vertex_group(const StringRef name, ListBase &vertex_group_names);
23
25void assign_to_vertex_group(Drawing &drawing, StringRef name, float weight);
26
28 const IndexMask &mask,
29 StringRef name,
30 float weight);
31
36bool remove_from_vertex_group(Drawing &drawing, StringRef name, bool use_selection);
37
39void clear_vertex_groups(GreasePencil &grease_pencil);
40
42void select_from_group(Drawing &drawing,
43 const AttrDomain selection_domain,
44 StringRef name,
45 bool select);
46
47} // namespace blender::bke::greasepencil
ccl_device_inline float4 select(const int4 mask, const float4 a, const float4 b)
void clear_vertex_groups(GreasePencil &grease_pencil)
bool remove_from_vertex_group(Drawing &drawing, StringRef name, bool use_selection)
int ensure_vertex_group(const StringRef name, ListBase &vertex_group_names)
void select_from_group(Drawing &drawing, const AttrDomain selection_domain, StringRef name, bool select)
void assign_to_vertex_group(Drawing &drawing, StringRef name, float weight)
void assign_to_vertex_group_from_mask(CurvesGeometry &curves, const IndexMask &mask, StringRef name, float weight)
void validate_drawing_vertex_groups(GreasePencil &grease_pencil)