Blender
V2.93
source
blender
blenkernel
BKE_anim_path.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17
* All rights reserved.
18
*/
19
#pragma once
20
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
struct
CurveCache
;
30
struct
Object
;
31
32
/* ---------------------------------------------------- */
33
/* Curve Paths */
34
35
int
BKE_anim_path_get_array_size
(
const
struct
CurveCache
*curve_cache);
36
float
BKE_anim_path_get_length
(
const
struct
CurveCache
*curve_cache);
37
38
/* This function populates the 'ob->runtime.curve_cache->anim_path_accum_length' data.
39
* You should never have to call this manually as it should already have been called by
40
* 'BKE_displist_make_curveTypes'. Do not call this manually unless you know what you are doing.
41
*/
42
void
BKE_anim_path_calc_data
(
struct
Object
*ob);
43
44
bool
BKE_where_on_path
(
const
struct
Object
*ob,
45
float
ctime,
46
float
r_vec[4],
47
float
r_dir[3],
48
float
r_quat[4],
49
float
*r_radius,
50
float
*r_weight);
51
52
#ifdef __cplusplus
53
}
54
#endif
BKE_where_on_path
bool BKE_where_on_path(const struct Object *ob, float ctime, float r_vec[4], float r_dir[3], float r_quat[4], float *r_radius, float *r_weight)
BKE_anim_path_get_array_size
int BKE_anim_path_get_array_size(const struct CurveCache *curve_cache)
BKE_anim_path_get_length
float BKE_anim_path_get_length(const struct CurveCache *curve_cache)
BKE_anim_path_calc_data
void BKE_anim_path_calc_data(struct Object *ob)
Definition:
anim_path.c:72
CurveCache
Definition:
BKE_curve.h:48
Object
Definition:
DNA_object_types.h:239
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1