~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/blenkernel/BKE_deform.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  BKE_deform.h   June 2001
2
 
 *  
3
 
 *  support for deformation groups and hooks
4
 
 * 
5
 
 *      Reevan McKay et al
6
 
 *
7
 
 * $Id: BKE_deform.h 26841 2010-02-12 13:34:04Z campbellbarton $
8
 
 *
 
1
/*
9
2
 * ***** BEGIN GPL LICENSE BLOCK *****
10
3
 *
11
4
 * This program is free software; you can redistribute it and/or
32
25
 * ***** END GPL LICENSE BLOCK *****
33
26
 */
34
27
 
35
 
#ifndef BKE_DEFORM_H
36
 
#define BKE_DEFORM_H
 
28
#ifndef __BKE_DEFORM_H__
 
29
#define __BKE_DEFORM_H__
 
30
 
 
31
/** \file BKE_deform.h
 
32
 *  \ingroup bke
 
33
 *  \since June 2001
 
34
 *  \author Reevan McKay et al
 
35
 *  \brief support for deformation groups and hooks.
 
36
 */
37
37
 
38
38
struct Object;
39
39
struct ListBase;
42
42
 
43
43
void                             defgroup_copy_list(struct ListBase *lb1, struct ListBase *lb2);
44
44
struct bDeformGroup *defgroup_duplicate(struct bDeformGroup *ingroup);
45
 
struct bDeformGroup *defgroup_find_name(struct Object *ob, char *name);
46
 
int                                      defgroup_find_index(struct Object *ob, struct bDeformGroup *dg);
47
 
int                                     *defgroup_flip_map(struct Object *ob, int use_default);
 
45
struct bDeformGroup *defgroup_find_name(struct Object *ob, const char *name);
 
46
int                                     *defgroup_flip_map(struct Object *ob, int *flip_map_len, int use_default);
 
47
int                                     *defgroup_flip_map_single(struct Object *ob, int *flip_map_len, int use_default, int defgroup);
48
48
int                                      defgroup_flip_index(struct Object *ob, int index, int use_default);
49
49
int                                      defgroup_name_index(struct Object *ob, const char *name);
50
50
void                             defgroup_unique_name(struct bDeformGroup *dg, struct Object *ob);
51
51
 
52
 
struct MDeformWeight    *defvert_find_index(const struct MDeformVert *dv, int defgroup);
53
 
struct MDeformWeight    *defvert_verify_index(struct MDeformVert *dv, int defgroup);
54
 
 
55
 
float  defvert_find_weight(const struct MDeformVert *dvert, int group_num);
56
 
float  defvert_array_find_weight_safe(const struct MDeformVert *dvert, int index, int group_num);
57
 
 
58
 
void defvert_copy(struct MDeformVert *dvert_r, const struct MDeformVert *dvert);
59
 
void defvert_sync(struct MDeformVert *dvert_r, const struct MDeformVert *dvert, int use_verify);
60
 
void defvert_sync_mapped(struct MDeformVert *dvert_r, const struct MDeformVert *dvert, int *flip_map, int use_verify);
61
 
void defvert_remap (struct MDeformVert *dvert, int *map);
62
 
void defvert_flip(struct MDeformVert *dvert, int *flip_map);
 
52
struct MDeformWeight    *defvert_find_index(const struct MDeformVert *dv, const int defgroup);
 
53
struct MDeformWeight    *defvert_verify_index(struct MDeformVert *dv, const int defgroup);
 
54
void                     defvert_add_index_notest(struct MDeformVert *dv, int defgroup, const float weight);
 
55
void                     defvert_remove_group(struct MDeformVert *dvert, struct MDeformWeight *dw);
 
56
void                     defvert_clear(struct MDeformVert *dvert);
 
57
 
 
58
float  defvert_find_weight(const struct MDeformVert *dvert, const int defgroup);
 
59
float  defvert_array_find_weight_safe(const struct MDeformVert *dvert, const int index, const int defgroup);
 
60
 
 
61
void defvert_copy(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src);
 
62
void defvert_copy_index(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src, const int defgroup);
 
63
void defvert_sync(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src, int use_verify);
 
64
void defvert_sync_mapped(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src,
 
65
                         const int *flip_map, const int flip_map_len, const int use_verify);
 
66
void defvert_remap (struct MDeformVert *dvert, int *map, const int map_len);
 
67
void defvert_flip(struct MDeformVert *dvert, const int *flip_map, const int flip_map_len);
 
68
void defvert_flip_merged(struct MDeformVert *dvert, const int *flip_map, const int flip_map_len);
63
69
void defvert_normalize(struct MDeformVert *dvert);
 
70
void defvert_normalize_lock(struct MDeformVert *dvert, const int def_nr_lock);
64
71
 
65
72
/* utility function, note that 32 chars is the maximum string length since its only
66
73
 * used with defgroups currently */
67
 
void flip_side_name(char *name, const char *from_name, int strip_number);
 
74
void flip_side_name(char name[64], const char from_name[64], int strip_number);
68
75
 
69
76
#endif
70
77