Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | FRAME_SNAP_EPS 0.0001f |
Functions | |
bool | MOD_meshcache_read_mdd_index (FILE *fp, float(*vertexCos)[3], int vertex_tot, int index, float factor, const char **err_str) |
bool | MOD_meshcache_read_mdd_frame (FILE *fp, float(*vertexCos)[3], int verts_tot, char interp, float frame, const char **err_str) |
bool | MOD_meshcache_read_mdd_times (const char *filepath, float(*vertexCos)[3], int verts_tot, char interp, float time, float fps, char time_mode, const char **err_str) |
bool | MOD_meshcache_read_pc2_index (FILE *fp, float(*vertexCos)[3], int verts_tot, int index, float factor, const char **err_str) |
bool | MOD_meshcache_read_pc2_frame (FILE *fp, float(*vertexCos)[3], int verts_tot, char interp, float frame, const char **err_str) |
bool | MOD_meshcache_read_pc2_times (const char *filepath, float(*vertexCos)[3], int verts_tot, char interp, float time, float fps, char time_mode, const char **err_str) |
void | MOD_meshcache_calc_range (float frame, char interp, int frame_tot, int r_index_range[2], float *r_factor) |
#define FRAME_SNAP_EPS 0.0001f |
Definition at line 56 of file MOD_meshcache_util.h.
void MOD_meshcache_calc_range | ( | float | frame, |
char | interp, | ||
int | frame_tot, | ||
int | r_index_range[2], | ||
float * | r_factor | ||
) |
Definition at line 15 of file MOD_meshcache_util.c.
References floorf, FRAME_SNAP_EPS, interp(), max_ii(), min_ii(), MOD_MESHCACHE_INTERP_NONE, and round_fl_to_int().
Referenced by meshcache_read_mdd_range(), and meshcache_read_pc2_range().
bool MOD_meshcache_read_mdd_frame | ( | FILE * | fp, |
float(*) | vertexCos[3], | ||
int | verts_tot, | ||
char | interp, | ||
float | frame, | ||
const char ** | err_str | ||
) |
Definition at line 217 of file MOD_meshcache_mdd.c.
References BLI_fseek(), interp(), meshcache_read_mdd_range(), and MOD_meshcache_read_mdd_index().
Referenced by MOD_meshcache_read_mdd_times().
bool MOD_meshcache_read_mdd_index | ( | FILE * | fp, |
float(*) | vertexCos[3], | ||
int | vertex_tot, | ||
int | index, | ||
float | factor, | ||
const char ** | err_str | ||
) |
Definition at line 140 of file MOD_meshcache_mdd.c.
References BLI_endian_switch_float(), BLI_endian_switch_float_array(), BLI_fseek(), MDDHead::frame_tot, meshcache_read_mdd_head(), and MDDHead::verts_tot.
Referenced by MOD_meshcache_read_mdd_frame().
bool MOD_meshcache_read_mdd_times | ( | const char * | filepath, |
float(*) | vertexCos[3], | ||
int | verts_tot, | ||
char | interp, | ||
float | time, | ||
float | fps, | ||
char | time_mode, | ||
const char ** | err_str | ||
) |
Definition at line 258 of file MOD_meshcache_mdd.c.
References BLI_fopen(), CLAMPIS, float(), MDDHead::frame_tot, interp(), meshcache_read_mdd_head(), meshcache_read_mdd_range_from_time(), MOD_meshcache_read_mdd_frame(), MOD_MESHCACHE_TIME_FACTOR, MOD_MESHCACHE_TIME_FRAME, MOD_MESHCACHE_TIME_SECONDS, NULL, and time.
Referenced by meshcache_do().
bool MOD_meshcache_read_pc2_frame | ( | FILE * | fp, |
float(*) | vertexCos[3], | ||
int | verts_tot, | ||
char | interp, | ||
float | frame, | ||
const char ** | err_str | ||
) |
Definition at line 183 of file MOD_meshcache_pc2.c.
References BLI_fseek(), interp(), meshcache_read_pc2_range(), and MOD_meshcache_read_pc2_index().
Referenced by MOD_meshcache_read_pc2_times().
bool MOD_meshcache_read_pc2_index | ( | FILE * | fp, |
float(*) | vertexCos[3], | ||
int | verts_tot, | ||
int | index, | ||
float | factor, | ||
const char ** | err_str | ||
) |
Definition at line 122 of file MOD_meshcache_pc2.c.
References BLI_endian_switch_float(), BLI_fseek(), meshcache_read_pc2_head(), and PC2Head::verts_tot.
Referenced by MOD_meshcache_read_pc2_frame().
bool MOD_meshcache_read_pc2_times | ( | const char * | filepath, |
float(*) | vertexCos[3], | ||
int | verts_tot, | ||
char | interp, | ||
float | time, | ||
float | fps, | ||
char | time_mode, | ||
const char ** | err_str | ||
) |
Definition at line 224 of file MOD_meshcache_pc2.c.
References BLI_fopen(), CLAMPIS, float(), PC2Head::frame_tot, interp(), meshcache_read_pc2_head(), meshcache_read_pc2_range_from_time(), MOD_meshcache_read_pc2_frame(), MOD_MESHCACHE_TIME_FACTOR, MOD_MESHCACHE_TIME_FRAME, MOD_MESHCACHE_TIME_SECONDS, NULL, and time.
Referenced by meshcache_do().