Blender  V3.3
BKE_crazyspace.hh
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 #include "BLI_float3x3.hh"
10 #include "BLI_math_vec_types.hh"
11 #include "BLI_span.hh"
12 
13 struct Depsgraph;
14 struct Object;
15 
17 
33 
35  const float3 &translation) const
36  {
37  if (this->deform_mats.is_empty()) {
38  return translation;
39  }
40  const float3x3 &deform_mat = this->deform_mats[position_i];
41  return deform_mat.inverted() * translation;
42  }
43 };
44 
50 GeometryDeformation get_evaluated_curves_deformation(const Depsgraph &depsgraph,
51  const Object &ob_orig);
52 
53 } // namespace blender::bke::crazyspace
struct Depsgraph Depsgraph
Definition: DEG_depsgraph.h:35
constexpr bool is_empty() const
Definition: BLI_span.hh:248
const Depsgraph * depsgraph
GeometryDeformation get_evaluated_curves_deformation(const Depsgraph &depsgraph, const Object &ob_orig)
Definition: crazyspace.cc:595
float3 translation_from_deformed_to_original(const int position_i, const float3 &translation) const
float3x3 inverted() const