Blender  V3.3
Classes | Typedefs | Functions
MOD_meshcache_mdd.c File Reference
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "BLI_utildefines.h"
#include "BLI_fileops.h"
#include "BLI_math.h"
#include "DNA_modifier_types.h"
#include "MOD_meshcache_util.h"

Go to the source code of this file.

Classes

struct  MDDHead
 

Typedefs

typedef struct MDDHead MDDHead
 

Functions

static bool meshcache_read_mdd_head (FILE *fp, const int verts_tot, MDDHead *mdd_head, const char **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 **err_str)
 
static bool meshcache_read_mdd_range_from_time (FILE *fp, const int verts_tot, const float time, const float UNUSED(fps), float *r_frame, const char **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 **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 **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 **err_str)
 

Typedef Documentation

◆ MDDHead

typedef struct MDDHead MDDHead

Function Documentation

◆ meshcache_read_mdd_head()

static bool meshcache_read_mdd_head ( FILE *  fp,
const int  verts_tot,
MDDHead mdd_head,
const char **  err_str 
)
static

◆ meshcache_read_mdd_range()

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

Gets the index range and factor.

Definition at line 62 of file MOD_meshcache_mdd.c.

References MDDHead::frame_tot, interp(), meshcache_read_mdd_head(), and MOD_meshcache_calc_range().

Referenced by MOD_meshcache_read_mdd_frame().

◆ meshcache_read_mdd_range_from_time()

static bool meshcache_read_mdd_range_from_time ( FILE *  fp,
const int  verts_tot,
const float  time,
const float   UNUSEDfps,
float r_frame,
const char **  err_str 
)
static

◆ MOD_meshcache_read_mdd_frame()

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

◆ MOD_meshcache_read_mdd_index()

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

◆ MOD_meshcache_read_mdd_times()

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