Blender V2.61 - r43446
|
Go to the source code of this file.
Typedefs | |
typedef struct LaplacianSystem | LaplacianSystem |
Functions | |
LaplacianSystem * | laplacian_construct_begin (int totvert, int totface, int lsq) |
void | laplacian_add_vertex (LaplacianSystem *sys, float *co, int pinned) |
void | laplacian_add_triangle (LaplacianSystem *sys, int v1, int v2, int v3) |
void | laplacian_construct_end (LaplacianSystem *sys) |
void | laplacian_delete (LaplacianSystem *sys) |
void | laplacian_begin_solve (LaplacianSystem *sys, int index) |
void | laplacian_add_right_hand_side (LaplacianSystem *sys, int v, float value) |
int | laplacian_system_solve (LaplacianSystem *sys) |
float | laplacian_system_get_solution (int v) |
void | heat_bone_weighting (struct Object *ob, struct Mesh *me, float(*verts)[3], int numbones, struct bDeformGroup **dgrouplist, struct bDeformGroup **dgroupflip, float(*root)[3], float(*tip)[3], int *selected, const char **error) |
Definition in file meshlaplacian.h.
typedef struct LaplacianSystem LaplacianSystem |
Definition at line 52 of file meshlaplacian.h.
void heat_bone_weighting | ( | struct Object * | ob, |
struct Mesh * | me, | ||
float(*) | verts[3], | ||
int | numbones, | ||
struct bDeformGroup ** | dgrouplist, | ||
struct bDeformGroup ** | dgroupflip, | ||
float(*) | root[3], | ||
float(*) | tip[3], | ||
int * | selected, | ||
const char ** | error | ||
) |
Definition at line 651 of file meshlaplacian.c.
References ED_vgroup_vert_add(), ED_vgroup_vert_remove(), ED_vgroup_vert_weight(), Mesh::editflag, FALSE, MVert::flag, LaplacianSystem::HeatWeighting::H, LaplacianSystem::heat, heat_laplacian_create(), heat_limit_weight(), heat_ray_tree_create(), heat_source_closest(), heat_system_free(), laplacian_add_right_hand_side(), laplacian_begin_solve(), laplacian_system_construct_begin(), laplacian_system_construct_end(), laplacian_system_delete(), laplacian_system_get_solution(), laplacian_system_solve(), ME_EDIT_PAINT_MASK, ME_EDIT_VERT_SEL, MEM_callocN(), MEM_freeN(), mesh_get_x_mirror_vert(), LaplacianSystem::HeatWeighting::mface, Mesh::mface, Mesh::mvert, NULL, LaplacianSystem::HeatWeighting::numsource, LaplacianSystem::HeatWeighting::p, LaplacianSystem::HeatWeighting::root, MakeCursor::root, SELECT, BVHCallbackUserData::sys, LaplacianSystem::HeatWeighting::tip, LaplacianSystem::HeatWeighting::totface, Mesh::totface, Mesh::totvert, LaplacianSystem::HeatWeighting::totvert, MFace::v1, MFace::v2, MFace::v3, MFace::v4, LaplacianSystem::HeatWeighting::verts, WEIGHT_ADD, and WEIGHT_REPLACE.
Referenced by add_verts_to_dgroups().
void laplacian_add_right_hand_side | ( | LaplacianSystem * | sys, |
int | v, | ||
float | value | ||
) |
void laplacian_add_triangle | ( | LaplacianSystem * | sys, |
int | v1, | ||
int | v2, | ||
int | v3 | ||
) |
Definition at line 279 of file meshlaplacian.c.
References LaplacianSystem::faces, and LaplacianSystem::totface.
Referenced by heat_laplacian_create().
void laplacian_add_vertex | ( | LaplacianSystem * | sys, |
float * | co, | ||
int | pinned | ||
) |
Definition at line 272 of file meshlaplacian.c.
References co, LaplacianSystem::totvert, LaplacianSystem::verts, and LaplacianSystem::vpinned.
Referenced by heat_laplacian_create().
void laplacian_begin_solve | ( | LaplacianSystem * | sys, |
int | index | ||
) |
Definition at line 350 of file meshlaplacian.c.
References NL_MATRIX, NL_SYSTEM, nlBegin(), LaplacianSystem::nlbegun, nlLockVariable(), nlSetVariable(), LaplacianSystem::totvert, LaplacianSystem::verts, and LaplacianSystem::vpinned.
Referenced by heat_bone_weighting(), and laplacian_system_construct_end().
LaplacianSystem* laplacian_construct_begin | ( | int | totvert, |
int | totface, | ||
int | lsq | ||
) |
void laplacian_construct_end | ( | LaplacianSystem * | sys | ) |
void laplacian_delete | ( | LaplacianSystem * | sys | ) |
float laplacian_system_get_solution | ( | int | v | ) |
Definition at line 387 of file meshlaplacian.c.
References nlGetVariable().
Referenced by heat_bone_weighting().
int laplacian_system_solve | ( | LaplacianSystem * | sys | ) |
Definition at line 376 of file meshlaplacian.c.
References NL_MATRIX, NL_SYSTEM, NL_TRUE, LaplacianSystem::nlbegun, nlEnd(), nlSolveAdvanced(), and NULL.
Referenced by heat_bone_weighting().