Blender V2.61 - r43446
Classes | Functions

lattice.c File Reference

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_bpath.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_lattice_types.h"
#include "DNA_curve_types.h"
#include "DNA_key_types.h"
#include "BKE_animsys.h"
#include "BKE_anim.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_displist.h"
#include "BKE_global.h"
#include "BKE_key.h"
#include "BKE_lattice.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_deform.h"

Go to the source code of this file.

Classes

struct  CurveDeform

Functions

void calc_lat_fudu (int flag, int res, float *fu, float *du)
void resizelattice (Lattice *lt, int uNew, int vNew, int wNew, Object *ltOb)
Latticeadd_lattice (const char *name)
Latticecopy_lattice (Lattice *lt)
void free_lattice (Lattice *lt)
void make_local_lattice (Lattice *lt)
void init_latt_deform (Object *oblatt, Object *ob)
void calc_latt_deform (Object *ob, float *co, float weight)
void end_latt_deform (Object *ob)
static void init_curve_deform (Object *par, Object *ob, CurveDeform *cd, int dloc)
static int where_on_path_deform (Object *ob, float ctime, float *vec, float *dir, float *quat, float *radius)
static int calc_curve_deform (Scene *scene, Object *par, float *co, short axis, CurveDeform *cd, float *quatp)
void curve_deform_verts (Scene *scene, Object *cuOb, Object *target, DerivedMesh *dm, float(*vertexCos)[3], int numVerts, const char *vgroup, short defaxis)
void curve_deform_vector (Scene *scene, Object *cuOb, Object *target, float *orco, float *vec, float mat[][3], int no_rot_axis)
void lattice_deform_verts (Object *laOb, Object *target, DerivedMesh *dm, float(*vertexCos)[3], int numVerts, const char *vgroup)
int object_deform_mball (Object *ob, ListBase *dispbase)
static BPointlatt_bp (Lattice *lt, int u, int v, int w)
void outside_lattice (Lattice *lt)
float(* lattice_getVertexCos (struct Object *ob, int *numVerts_r))[3]
void lattice_applyVertexCos (struct Object *ob, float(*vertexCos)[3])
void lattice_calc_modifiers (Scene *scene, Object *ob)
struct MDeformVertlattice_get_deform_verts (struct Object *oblatt)

Detailed Description

Definition in file lattice.c.


Function Documentation

Lattice* add_lattice ( const char *  name) [read]
static int calc_curve_deform ( Scene scene,
Object par,
float *  co,
short  axis,
CurveDeform cd,
float *  quatp 
) [static]
void calc_lat_fudu ( int  flag,
int  res,
float *  fu,
float *  du 
)

Definition at line 70 of file lattice.c.

References LT_GRID.

Referenced by do_versions(), and resizelattice().

void calc_latt_deform ( Object ob,
float *  co,
float  weight 
)
Lattice* copy_lattice ( Lattice lt) [read]
void curve_deform_vector ( Scene scene,
Object cuOb,
Object target,
float *  orco,
float *  vec,
float  mat[][3],
int  no_rot_axis 
)
void curve_deform_verts ( Scene scene,
Object cuOb,
Object target,
DerivedMesh dm,
float(*)  vertexCos[3],
int  numVerts,
const char *  vgroup,
short  defaxis 
)
void end_latt_deform ( Object ob)
void free_lattice ( Lattice lt)
static void init_curve_deform ( Object par,
Object ob,
CurveDeform cd,
int  dloc 
) [static]
void init_latt_deform ( Object oblatt,
Object ob 
)
static BPoint* latt_bp ( Lattice lt,
int  u,
int  v,
int  w 
) [static]

Definition at line 886 of file lattice.c.

References Lattice::def, Lattice::pntsu, and Lattice::pntsv.

Referenced by outside_lattice().

void lattice_applyVertexCos ( struct Object ob,
float(*)  vertexCos[3] 
)
void lattice_calc_modifiers ( Scene scene,
Object ob 
)
void lattice_deform_verts ( Object laOb,
Object target,
DerivedMesh dm,
float(*)  vertexCos[3],
int  numVerts,
const char *  vgroup 
)
struct MDeformVert* lattice_get_deform_verts ( struct Object oblatt) [read]
float(* lattice_getVertexCos ( struct Object ob,
int *  numVerts_r 
) )[3]
void make_local_lattice ( Lattice lt)
int object_deform_mball ( Object ob,
ListBase dispbase 
)
void outside_lattice ( Lattice lt)
void resizelattice ( Lattice lt,
int  uNew,
int  vNew,
int  wNew,
Object ltOb 
)
static int where_on_path_deform ( Object ob,
float  ctime,
float *  vec,
float *  dir,
float *  quat,
float *  radius 
) [static]