2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* Contributor(s): Campbell Barton
20
* ***** END GPL LICENSE BLOCK *****
23
/** \file blender/modifiers/intern/MOD_meshcache_util.h
27
#ifndef __MOD_MESHCACHE_UTIL_H__
32
/* MOD_meshcache_mdd.c */
33
bool MOD_meshcache_read_mdd_index(FILE *fp,
34
float (*vertexCos)[3], const int vertex_tot,
35
const int index, const float factor,
36
const char **err_str);
37
bool MOD_meshcache_read_mdd_frame(FILE *fp,
38
float (*vertexCos)[3], const int verts_tot, const char interp,
40
const char **err_str);
41
bool MOD_meshcache_read_mdd_times(const char *filepath,
42
float (*vertexCos)[3], const int verts_tot, const char interp,
43
const float time, const float fps, const char time_mode,
44
const char **err_str);
46
/* MOD_meshcache_pc2.c */
47
bool MOD_meshcache_read_pc2_index(FILE *fp,
48
float (*vertexCos)[3], const int verts_tot,
49
const int index, const float factor,
50
const char **err_str);
51
bool MOD_meshcache_read_pc2_frame(FILE *fp,
52
float (*vertexCos)[3], const int verts_tot, const char interp,
54
const char **err_str);
55
bool MOD_meshcache_read_pc2_times(const char *filepath,
56
float (*vertexCos)[3], const int verts_tot, const char interp,
57
const float time, const float fps, const char time_mode,
58
const char **err_str);
60
/* MOD_meshcache_util.c */
61
void MOD_meshcache_calc_range(const float frame, const char interp,
63
int r_index_range[2], float *r_factor);
65
#define FRAME_SNAP_EPS 0.0001f
67
#endif /* __MOD_MESHCACHE_UTIL_H__ */