|
Blender
V3.3
|
#include <errno.h>#include <stdio.h>#include <string.h>#include "BLI_utildefines.h"#include "BLI_fileops.h"#include "DNA_modifier_types.h"#include "MOD_meshcache_util.h"Go to the source code of this file.
Classes | |
| struct | PC2Head |
Typedefs | |
| typedef struct PC2Head | PC2Head |
Functions | |
| static bool | meshcache_read_pc2_head (FILE *fp, const int verts_tot, PC2Head *pc2_head, const char **err_str) |
| static bool | meshcache_read_pc2_range (FILE *fp, const int verts_tot, const float frame, const char interp, int r_index_range[2], float *r_factor, const char **err_str) |
| static bool | meshcache_read_pc2_range_from_time (FILE *fp, const int verts_tot, const float time, const float fps, float *r_frame, const char **err_str) |
| bool | MOD_meshcache_read_pc2_index (FILE *fp, float(*vertexCos)[3], const int verts_tot, const int index, const float factor, const char **err_str) |
| bool | MOD_meshcache_read_pc2_frame (FILE *fp, float(*vertexCos)[3], const int verts_tot, const char interp, const float frame, const char **err_str) |
| bool | MOD_meshcache_read_pc2_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 **err_str) |
|
static |
Definition at line 35 of file MOD_meshcache_pc2.c.
References BLI_endian_switch_int32_array(), PC2Head::file_version, PC2Head::frame_tot, PC2Head::header, STREQ, and PC2Head::verts_tot.
Referenced by meshcache_read_pc2_range(), meshcache_read_pc2_range_from_time(), MOD_meshcache_read_pc2_index(), and MOD_meshcache_read_pc2_times().
|
static |
Gets the index range and factor
currently same as for MDD
Definition at line 74 of file MOD_meshcache_pc2.c.
References PC2Head::frame_tot, interp(), meshcache_read_pc2_head(), and MOD_meshcache_calc_range().
Referenced by MOD_meshcache_read_pc2_frame().
|
static |
Definition at line 95 of file MOD_meshcache_pc2.c.
References float(), PC2Head::frame_tot, meshcache_read_pc2_head(), PC2Head::sampling, PC2Head::start, and time.
Referenced by MOD_meshcache_read_pc2_times().
| bool MOD_meshcache_read_pc2_frame | ( | FILE * | fp, |
| float(*) | vertexCos[3], | ||
| const int | verts_tot, | ||
| const char | interp, | ||
| const 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], | ||
| const int | verts_tot, | ||
| const int | index, | ||
| const 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], | ||
| const int | verts_tot, | ||
| const char | interp, | ||
| const float | time, | ||
| const float | fps, | ||
| const 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().