Blender
V5.3
source
blender
editors
sculpt_paint
mesh
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
"
14
#include "
BLI_math_matrix_types.hh
"
15
16
#include "
BKE_paint.hh
"
17
18
namespace
blender
{
19
20
struct
Brush
;
21
struct
Depsgraph;
22
struct
Object
;
23
struct
Sculpt
;
24
struct
SculptPoseIKChainPreview
;
25
struct
SculptSession
;
26
namespace
bke::pbvh
{
27
class
Node
;
28
}
29
30
namespace
ed::sculpt_paint::pose
{
31
33
struct
IKChainSegment
{
34
float3
orig
;
35
float3
head
;
36
37
float3
initial_orig
;
38
float3
initial_head
;
39
float
len
;
40
float3
scale
;
41
float
rot
[4];
42
Array<float>
weights
;
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
51
struct
IKChain
{
52
Vector<IKChainSegment>
segments
;
53
float3
grab_delta_offset
;
54
};
55
59
void
do_pose_brush
(
const
Depsgraph &depsgraph,
60
const
Sculpt
&sd,
61
Object
&ob,
62
const
IndexMask
&node_mask);
63
64
std::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
BKE_paint.hh
BLI_array.hh
BLI_math_matrix_types.hh
blender::Array
Definition
BLI_array.hh:50
blender::Vector
Definition
BLI_vector.hh:76
blender::bke::pbvh::Node
Definition
BKE_paint_bvh.hh:64
blender::index_mask::IndexMask
Definition
BLI_index_mask.hh:218
blender::bke::brush
Definition
BKE_brush.hh:106
blender::bke::pbvh
Definition
BKE_paint.hh:51
blender::ed::sculpt_paint::pose
Definition
mesh/sculpt_intern.hh:47
blender::ed::sculpt_paint::pose::do_pose_brush
void do_pose_brush(const Depsgraph &depsgraph, const Sculpt &sd, Object &ob, const IndexMask &node_mask)
Definition
sculpt_pose.cc:2123
blender::ed::sculpt_paint::pose::preview_ik_chain_init
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)
Definition
sculpt_pose.cc:1981
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::float3
VecBase< float, 3 > float3
Definition
BLI_math_vector_types.hh:799
blender::Brush
Definition
DNA_brush_types.h:175
blender::Object
Definition
DNA_object_types.h:466
blender::SculptPoseIKChainPreview
Definition
BKE_paint.hh:320
blender::SculptSession
Definition
BKE_paint.hh:366
blender::Sculpt
Definition
DNA_scene_types.h:1501
blender::ed::sculpt_paint::pose::IKChainSegment
Definition
sculpt_pose.hh:33
blender::ed::sculpt_paint::pose::IKChainSegment::pivot_mat
std::array< float4x4, PAINT_SYMM_AREAS > pivot_mat
Definition
sculpt_pose.hh:47
blender::ed::sculpt_paint::pose::IKChainSegment::weights
Array< float > weights
Definition
sculpt_pose.hh:42
blender::ed::sculpt_paint::pose::IKChainSegment::head
float3 head
Definition
sculpt_pose.hh:35
blender::ed::sculpt_paint::pose::IKChainSegment::pivot_mat_inv
std::array< float4x4, PAINT_SYMM_AREAS > pivot_mat_inv
Definition
sculpt_pose.hh:48
blender::ed::sculpt_paint::pose::IKChainSegment::orig
float3 orig
Definition
sculpt_pose.hh:34
blender::ed::sculpt_paint::pose::IKChainSegment::initial_orig
float3 initial_orig
Definition
sculpt_pose.hh:37
blender::ed::sculpt_paint::pose::IKChainSegment::initial_head
float3 initial_head
Definition
sculpt_pose.hh:38
blender::ed::sculpt_paint::pose::IKChainSegment::trans_mat
std::array< float4x4, PAINT_SYMM_AREAS > trans_mat
Definition
sculpt_pose.hh:46
blender::ed::sculpt_paint::pose::IKChainSegment::len
float len
Definition
sculpt_pose.hh:39
blender::ed::sculpt_paint::pose::IKChainSegment::scale
float3 scale
Definition
sculpt_pose.hh:40
blender::ed::sculpt_paint::pose::IKChainSegment::rot
float rot[4]
Definition
sculpt_pose.hh:41
blender::ed::sculpt_paint::pose::IKChain
Definition
sculpt_pose.hh:51
blender::ed::sculpt_paint::pose::IKChain::segments
Vector< IKChainSegment > segments
Definition
sculpt_pose.hh:52
blender::ed::sculpt_paint::pose::IKChain::grab_delta_offset
float3 grab_delta_offset
Definition
sculpt_pose.hh:53
Generated on
for Blender by
doxygen
1.18.0