Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_key.h
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2001-2002 NaN Holding BV. All rights reserved. */ | * Copyright 2001-2002 NaN Holding BV. All rights reserved. */ | ||||
| #pragma once | #pragma once | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| */ | */ | ||||
| struct Curve; | struct Curve; | ||||
| struct ID; | struct ID; | ||||
| struct Key; | struct Key; | ||||
| struct KeyBlock; | struct KeyBlock; | ||||
| struct Lattice; | struct Lattice; | ||||
| struct ListBase; | struct ListBase; | ||||
| struct Main; | struct Main; | ||||
| struct Mesh; | struct Mesh; | ||||
| struct MVert; | |||||
| struct Object; | struct Object; | ||||
| /* Kernel prototypes */ | /* Kernel prototypes */ | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | void BKE_keyblock_curve_data_transform(const struct ListBase *nurb, | ||||
| const void *src, | const void *src, | ||||
| void *dst); | void *dst); | ||||
| void BKE_keyblock_update_from_curve(struct Curve *cu, struct KeyBlock *kb, struct ListBase *nurb); | void BKE_keyblock_update_from_curve(struct Curve *cu, struct KeyBlock *kb, struct ListBase *nurb); | ||||
| void BKE_keyblock_convert_from_curve(struct Curve *cu, struct KeyBlock *kb, struct ListBase *nurb); | void BKE_keyblock_convert_from_curve(struct Curve *cu, struct KeyBlock *kb, struct ListBase *nurb); | ||||
| void BKE_keyblock_convert_to_curve(struct KeyBlock *kb, struct Curve *cu, struct ListBase *nurb); | void BKE_keyblock_convert_to_curve(struct KeyBlock *kb, struct Curve *cu, struct ListBase *nurb); | ||||
| void BKE_keyblock_update_from_mesh(struct Mesh *me, struct KeyBlock *kb); | void BKE_keyblock_update_from_mesh(struct Mesh *me, struct KeyBlock *kb); | ||||
| void BKE_keyblock_convert_from_mesh(struct Mesh *me, struct Key *key, struct KeyBlock *kb); | void BKE_keyblock_convert_from_mesh(struct Mesh *me, struct Key *key, struct KeyBlock *kb); | ||||
| void BKE_keyblock_convert_to_mesh(struct KeyBlock *kb, struct Mesh *me); | void BKE_keyblock_convert_to_mesh(struct KeyBlock *kb, struct MVert *mvert, int totvert); | ||||
| /** | /** | ||||
| * Computes normals (vertices, polygons and/or loops ones) of given mesh for given shape key. | * Computes normals (vertices, polygons and/or loops ones) of given mesh for given shape key. | ||||
| * | * | ||||
| * \param kb: the KeyBlock to use to compute normals. | * \param kb: the KeyBlock to use to compute normals. | ||||
| * \param mesh: the Mesh to apply key-block to. | * \param mesh: the Mesh to apply key-block to. | ||||
| * \param r_vertnors: if non-NULL, an array of vectors, same length as number of vertices. | * \param r_vertnors: if non-NULL, an array of vectors, same length as number of vertices. | ||||
| * \param r_polynors: if non-NULL, an array of vectors, same length as number of polygons. | * \param r_polynors: if non-NULL, an array of vectors, same length as number of polygons. | ||||
| * \param r_loopnors: if non-NULL, an array of vectors, same length as number of loops. | * \param r_loopnors: if non-NULL, an array of vectors, same length as number of loops. | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||