Blender V4.3
MOD_meshcache_pc2.cc File Reference
#include <algorithm>
#include <cerrno>
#include <cstdio>
#include <cstring>
#include "BLI_utildefines.h"
#include "BLI_fileops.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  PC2Head
 

Functions

static bool meshcache_read_pc2_head (FILE *fp, const int verts_tot, PC2Head *pc2_head, const char **r_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 **r_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 **r_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 **r_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 **r_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 **r_err_str)
 

Function Documentation

◆ meshcache_read_pc2_head()

static bool meshcache_read_pc2_head ( FILE * fp,
const int verts_tot,
PC2Head * pc2_head,
const char ** r_err_str )
static

◆ meshcache_read_pc2_range()

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 ** r_err_str )
static

Gets the index range and factor

currently same as for MDD

Definition at line 79 of file MOD_meshcache_pc2.cc.

References PC2Head::frame_tot, interp(), meshcache_read_pc2_head(), and MOD_meshcache_calc_range().

Referenced by MOD_meshcache_read_pc2_frame().

◆ meshcache_read_pc2_range_from_time()

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 ** r_err_str )
static

◆ MOD_meshcache_read_pc2_frame()

bool MOD_meshcache_read_pc2_frame ( FILE * fp,
float(*) vertexCos[3],
const int verts_tot,
const char interp,
const float frame,
const char ** r_err_str )

◆ MOD_meshcache_read_pc2_index()

bool MOD_meshcache_read_pc2_index ( FILE * fp,
float(*) vertexCos[3],
const int verts_tot,
const int index,
const float factor,
const char ** r_err_str )

◆ MOD_meshcache_read_pc2_times()

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 ** r_err_str )