Blender V5.3
sculpt_pose.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <array>
12
13#include "BLI_array.hh"
15
16#include "BKE_paint.hh"
17
18namespace blender {
19
20struct Brush;
21struct Depsgraph;
22struct Object;
23struct Sculpt;
25struct SculptSession;
26namespace bke::pbvh {
27class Node;
28}
29
30namespace ed::sculpt_paint::pose {
31
36
39 float len;
41 float rot[4];
43
44 /* Store a 4x4 transform matrix for each of the possible combinations of enabled XYZ symmetry
45 * axis. */
46 std::array<float4x4, PAINT_SYMM_AREAS> trans_mat;
47 std::array<float4x4, PAINT_SYMM_AREAS> pivot_mat;
48 std::array<float4x4, PAINT_SYMM_AREAS> pivot_mat_inv;
49};
50
55
59void do_pose_brush(const Depsgraph &depsgraph,
60 const Sculpt &sd,
61 Object &ob,
62 const IndexMask &node_mask);
63
64std::unique_ptr<SculptPoseIKChainPreview> preview_ik_chain_init(const Depsgraph &depsgraph,
65 Object &ob,
66 SculptSession &ss,
67 const Brush &brush,
68 const float3 &initial_location,
69 float radius);
70
71} // namespace ed::sculpt_paint::pose
72
73} // namespace blender
void do_pose_brush(const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask)
std::unique_ptr< SculptPoseIKChainPreview > preview_ik_chain_init(const Depsgraph &depsgraph, Object &ob, SculptSession &ss, const Brush &brush, const float3 &initial_location, const float radius)
BMesh Iterators.
VecBase< float, 3 > float3
std::array< float4x4, PAINT_SYMM_AREAS > pivot_mat
std::array< float4x4, PAINT_SYMM_AREAS > pivot_mat_inv
std::array< float4x4, PAINT_SYMM_AREAS > trans_mat