Blender V5.0
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
11
13
14#include "BKE_attribute.hh"
15
17
20
22int ensure_vertex_group(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
41} // namespace blender::bke::greasepencil
struct CurvesGeometry CurvesGeometry
struct GreasePencil GreasePencil
struct ListBase ListBase
ccl_device_inline float2 mask(const MaskType mask, const float2 a)
void clear_vertex_groups(GreasePencil &grease_pencil)
bool remove_from_vertex_group(Drawing &drawing, StringRef name, bool use_selection)
int ensure_vertex_group(StringRef name, ListBase &vertex_group_names)
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)
const char * name