Files
test/source/blender/modifiers/intern/MOD_meshcache_util.hh
Campbell Barton e955c94ed3 License Headers: Set copyright to "Blender Authors", add AUTHORS
Listing the "Blender Foundation" as copyright holder implied the Blender
Foundation holds copyright to files which may include work from many
developers.

While keeping copyright on headers makes sense for isolated libraries,
Blender's own code may be refactored or moved between files in a way
that makes the per file copyright holders less meaningful.

Copyright references to the "Blender Foundation" have been replaced with
"Blender Authors", with the exception of `./extern/` since these this
contains libraries which are more isolated, any changed to license
headers there can be handled on a case-by-case basis.

Some directories in `./intern/` have also been excluded:

- `./intern/cycles/` it's own `AUTHORS` file is planned.
- `./intern/opensubdiv/`.

An "AUTHORS" file has been added, using the chromium projects authors
file as a template.

Design task: #110784

Ref !110783.
2023-08-16 00:20:26 +10:00

55 lines
2.0 KiB
C++

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup modifiers
*/
#pragma once
/* `MOD_meshcache_mdd.cc` */
bool MOD_meshcache_read_mdd_index(
FILE *fp, float (*vertexCos)[3], int verts_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);
/* `MOD_meshcache_pc2.cc` */
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);
/* `MOD_meshcache_util.cc` */
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