Blender V2.61 - r43446
Classes | Defines | Functions

crazyspace.c File Reference

#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "DNA_modifier_types.h"
#include "DNA_meshdata_types.h"
#include "BKE_DerivedMesh.h"
#include "BKE_modifier.h"
#include "BKE_multires.h"
#include "BKE_mesh.h"
#include "BLI_utildefines.h"
#include "BLI_math.h"
#include "BLI_editVert.h"
#include "ED_util.h"

Go to the source code of this file.

Classes

struct  MappedUserData

Defines

#define TAN_MAKE_VEC(a, b, c)   a[0]= b[0] + 0.2f*(b[0]-c[0]); a[1]= b[1] + 0.2f*(b[1]-c[1]); a[2]= b[2] + 0.2f*(b[2]-c[2])

Functions

static void set_crazy_vertex_quat (float *quat, float *v1, float *v2, float *v3, float *def1, float *def2, float *def3)
static void make_vertexcos__mapFunc (void *userData, int index, float *co, float *UNUSED(no_f), short *UNUSED(no_s))
static int modifiers_disable_subsurf_temporary (Object *ob)
float * crazyspace_get_mapped_editverts (Scene *scene, Object *obedit)
void crazyspace_set_quats_editmesh (EditMesh *em, float *origcos, float *mappedcos, float *quats)
void crazyspace_set_quats_mesh (Mesh *me, float *origcos, float *mappedcos, float *quats)
int editmesh_get_first_deform_matrices (Scene *scene, Object *ob, EditMesh *em, float(**deformmats)[3][3], float(**deformcos)[3])
int sculpt_get_first_deform_matrices (Scene *scene, Object *ob, float(**deformmats)[3][3], float(**deformcos)[3])
void crazyspace_build_sculpt (Scene *scene, Object *ob, float(**deformmats)[3][3], float(**deformcos)[3])

Detailed Description

Definition in file crazyspace.c.


Define Documentation

#define TAN_MAKE_VEC (   a,
  b,
 
)    a[0]= b[0] + 0.2f*(b[0]-c[0]); a[1]= b[1] + 0.2f*(b[1]-c[1]); a[2]= b[2] + 0.2f*(b[2]-c[2])

Definition at line 56 of file crazyspace.c.

Referenced by set_crazy_vertex_quat().


Function Documentation

void crazyspace_build_sculpt ( Scene scene,
Object ob,
float(**)  deformmats[3][3],
float(**)  deformcos[3] 
)
float* crazyspace_get_mapped_editverts ( Scene scene,
Object obedit 
)
void crazyspace_set_quats_editmesh ( EditMesh em,
float *  origcos,
float *  mappedcos,
float *  quats 
)
void crazyspace_set_quats_mesh ( Mesh me,
float *  origcos,
float *  mappedcos,
float *  quats 
)
int editmesh_get_first_deform_matrices ( Scene scene,
Object ob,
EditMesh em,
float(**)  deformmats[3][3],
float(**)  deformcos[3] 
)
static void make_vertexcos__mapFunc ( void *  userData,
int  index,
float *  co,
float *  UNUSEDno_f,
short *  UNUSEDno_s 
) [static]
static int modifiers_disable_subsurf_temporary ( Object ob) [static]
int sculpt_get_first_deform_matrices ( Scene scene,
Object ob,
float(**)  deformmats[3][3],
float(**)  deformcos[3] 
)
static void set_crazy_vertex_quat ( float *  quat,
float *  v1,
float *  v2,
float *  v3,
float *  def1,
float *  def2,
float *  def3 
) [static]

Definition at line 57 of file crazyspace.c.

References sub_qt_qtqt(), TAN_MAKE_VEC, and tri_to_quat().

Referenced by crazyspace_set_quats_editmesh(), and crazyspace_set_quats_mesh().