|
Blender V4.3
|
#include <algorithm>#include <cerrno>#include <cstdio>#include <cstring>#include "BLI_utildefines.h"#include "BLI_fileops.h"#include "BLI_math_base.h"#include "BLT_translation.hh"#include "DNA_modifier_types.h"#include "MOD_meshcache_util.hh"Go to the source code of this file.
Classes | |
| struct | MDDHead |
Functions | |
| static bool | meshcache_read_mdd_head (FILE *fp, const int verts_tot, MDDHead *mdd_head, const char **r_err_str) |
| static bool | meshcache_read_mdd_range (FILE *fp, const int verts_tot, const float frame, const char interp, int r_index_range[2], float *r_factor, const char **r_err_str) |
| static bool | meshcache_read_mdd_range_from_time (FILE *fp, const int verts_tot, const float time, const float, float *r_frame, const char **r_err_str) |
| bool | MOD_meshcache_read_mdd_index (FILE *fp, float(*vertexCos)[3], const int verts_tot, const int index, const float factor, const char **r_err_str) |
| bool | MOD_meshcache_read_mdd_frame (FILE *fp, float(*vertexCos)[3], const int verts_tot, const char interp, const float frame, const char **r_err_str) |
| bool | MOD_meshcache_read_mdd_times (const char *filepath, float(*vertexCos)[3], const int verts_tot, const char interp, const float time, const float fps, const char time_mode, const char **r_err_str) |
|
static |
Definition at line 36 of file MOD_meshcache_mdd.cc.
References BLI_endian_switch_int32_array(), MDDHead::frame_tot, RPT_, and MDDHead::verts_tot.
Referenced by meshcache_read_mdd_range(), meshcache_read_mdd_range_from_time(), MOD_meshcache_read_mdd_index(), and MOD_meshcache_read_mdd_times().
|
static |
Gets the index range and factor.
Definition at line 67 of file MOD_meshcache_mdd.cc.
References MDDHead::frame_tot, interp(), meshcache_read_mdd_head(), and MOD_meshcache_calc_range().
Referenced by MOD_meshcache_read_mdd_frame().
|
static |
Definition at line 88 of file MOD_meshcache_mdd.cc.
References BLI_endian_switch_float(), float, FLT_MAX, FRAME_SNAP_EPS, MDDHead::frame_tot, meshcache_read_mdd_head(), RPT_, and UNLIKELY.
Referenced by MOD_meshcache_read_mdd_times().
| bool MOD_meshcache_read_mdd_frame | ( | FILE * | fp, |
| float(*) | vertexCos[3], | ||
| const int | verts_tot, | ||
| const char | interp, | ||
| const float | frame, | ||
| const char ** | r_err_str ) |
Definition at line 219 of file MOD_meshcache_mdd.cc.
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], | ||
| const int | verts_tot, | ||
| const int | index, | ||
| const float | factor, | ||
| const char ** | r_err_str ) |
Definition at line 142 of file MOD_meshcache_mdd.cc.
References BLI_endian_switch_float(), BLI_endian_switch_float_array(), BLI_fseek(), MDDHead::frame_tot, meshcache_read_mdd_head(), RPT_, and MDDHead::verts_tot.
Referenced by MOD_meshcache_read_mdd_frame().
| bool MOD_meshcache_read_mdd_times | ( | const char * | filepath, |
| float(*) | vertexCos[3], | ||
| const int | verts_tot, | ||
| const char | interp, | ||
| const float | time, | ||
| const float | fps, | ||
| const char | time_mode, | ||
| const char ** | r_err_str ) |
Definition at line 263 of file MOD_meshcache_mdd.cc.
References BLI_fopen(), 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, RPT_, and time.
Referenced by meshcache_do().