Blender V2.61 - r43446
Classes | Enumerations | Functions | Variables

DerivedMesh.c File Reference

#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_cloth_types.h"
#include "DNA_key_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_armature_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_math.h"
#include "BLI_memarena.h"
#include "BLI_pbvh.h"
#include "BLI_utildefines.h"
#include "BLI_linklist.h"
#include "BKE_cdderivedmesh.h"
#include "BKE_displist.h"
#include "BKE_key.h"
#include "BKE_modifier.h"
#include "BKE_mesh.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_texture.h"
#include "BKE_multires.h"
#include "BKE_armature.h"
#include "BKE_deform.h"
#include "BLO_sys_types.h"
#include "GL/glew.h"
#include "GPU_buffers.h"
#include "GPU_draw.h"
#include "GPU_extensions.h"
#include "GPU_material.h"
#include "mikktspace.h"

Go to the source code of this file.

Classes

struct  SGLSLMeshToTangent

Enumerations

enum  { CALC_WP_MULTIPAINT = (1<<0), CALC_WP_AUTO_NORMALIZE = (1<<1) }

Functions

static MVertdm_getVertArray (DerivedMesh *dm)
static MEdgedm_getEdgeArray (DerivedMesh *dm)
static MFacedm_getFaceArray (DerivedMesh *dm)
static MVertdm_dupVertArray (DerivedMesh *dm)
static MEdgedm_dupEdgeArray (DerivedMesh *dm)
static MFacedm_dupFaceArray (DerivedMesh *dm)
void DM_init_funcs (DerivedMesh *dm)
void DM_init (DerivedMesh *dm, DerivedMeshType type, int numVerts, int numEdges, int numFaces)
void DM_from_template (DerivedMesh *dm, DerivedMesh *source, DerivedMeshType type, int numVerts, int numEdges, int numFaces)
int DM_release (DerivedMesh *dm)
void DM_to_mesh (DerivedMesh *dm, Mesh *me)
void DM_to_meshkey (DerivedMesh *dm, Mesh *me, KeyBlock *kb)
void DM_set_only_copy (DerivedMesh *dm, CustomDataMask mask)
void DM_add_vert_layer (DerivedMesh *dm, int type, int alloctype, void *layer)
void DM_add_edge_layer (DerivedMesh *dm, int type, int alloctype, void *layer)
void DM_add_face_layer (DerivedMesh *dm, int type, int alloctype, void *layer)
void * DM_get_vert_data (DerivedMesh *dm, int index, int type)
void * DM_get_edge_data (DerivedMesh *dm, int index, int type)
void * DM_get_face_data (DerivedMesh *dm, int index, int type)
void * DM_get_vert_data_layer (DerivedMesh *dm, int type)
void * DM_get_edge_data_layer (DerivedMesh *dm, int type)
void * DM_get_face_data_layer (DerivedMesh *dm, int type)
void DM_set_vert_data (DerivedMesh *dm, int index, int type, void *data)
void DM_set_edge_data (DerivedMesh *dm, int index, int type, void *data)
void DM_set_face_data (DerivedMesh *dm, int index, int type, void *data)
void DM_copy_vert_data (DerivedMesh *source, DerivedMesh *dest, int source_index, int dest_index, int count)
void DM_copy_edge_data (DerivedMesh *source, DerivedMesh *dest, int source_index, int dest_index, int count)
void DM_copy_face_data (DerivedMesh *source, DerivedMesh *dest, int source_index, int dest_index, int count)
void DM_free_vert_data (struct DerivedMesh *dm, int index, int count)
void DM_free_edge_data (struct DerivedMesh *dm, int index, int count)
void DM_free_face_data (struct DerivedMesh *dm, int index, int count)
void DM_interp_vert_data (DerivedMesh *source, DerivedMesh *dest, int *src_indices, float *weights, int count, int dest_index)
void DM_interp_edge_data (DerivedMesh *source, DerivedMesh *dest, int *src_indices, float *weights, EdgeVertWeight *vert_weights, int count, int dest_index)
void DM_interp_face_data (DerivedMesh *source, DerivedMesh *dest, int *src_indices, float *weights, FaceVertWeight *vert_weights, int count, int dest_index)
void DM_swap_face_data (DerivedMesh *dm, int index, const int *corner_indices)
DerivedMeshmesh_create_derived (Mesh *me, Object *ob, float(*vertCos)[3])
DerivedMeshmesh_create_derived_for_modifier (Scene *scene, Object *ob, ModifierData *md)
static float * get_editmesh_orco_verts (EditMesh *em)
static void * get_orco_coords_dm (Object *ob, EditMesh *em, int layer, int *free)
static DerivedMeshcreate_orco_dm (Object *ob, Mesh *me, EditMesh *em, int layer)
static void add_orco_dm (Object *ob, EditMesh *em, DerivedMesh *dm, DerivedMesh *orcodm, int layer)
void weight_to_rgb (float r_rgb[3], const float weight)
static void weightpaint_color (unsigned char r_col[4], ColorBand *coba, const float input)
static void calc_weightpaint_vert_color (unsigned char r_col[4], MDeformVert *dv, ColorBand *coba, const int defbase_tot, const int defbase_act, const char *dg_flags, const int selected, const int draw_flag)
void vDM_ColorBand_store (ColorBand *coba)
static unsigned char * calc_weightpaint_vert_array (Object *ob, int const draw_flag, ColorBand *coba)
static void add_weight_mcol_dm (Object *ob, DerivedMesh *dm, int const draw_flag)
static void mesh_calc_modifiers (Scene *scene, Object *ob, float(*inputVertexCos)[3], DerivedMesh **deform_r, DerivedMesh **final_r, int useRenderParams, int useDeform, int needMapping, CustomDataMask dataMask, int index, int useCache)
float(* editmesh_get_vertex_cos (EditMesh *em, int *numVerts_r))[3]
int editmesh_modifier_is_enabled (Scene *scene, ModifierData *md, DerivedMesh *dm)
static void editmesh_calc_modifiers (Scene *scene, Object *ob, EditMesh *em, DerivedMesh **cage_r, DerivedMesh **final_r, CustomDataMask dataMask)
static void clear_mesh_caches (Object *ob)
static void mesh_build_data (Scene *scene, Object *ob, CustomDataMask dataMask)
static void editmesh_build_data (Scene *scene, Object *obedit, EditMesh *em, CustomDataMask dataMask)
void makeDerivedMesh (Scene *scene, Object *ob, EditMesh *em, CustomDataMask dataMask)
DerivedMeshmesh_get_derived_final (Scene *scene, Object *ob, CustomDataMask dataMask)
DerivedMeshmesh_get_derived_deform (Scene *scene, Object *ob, CustomDataMask dataMask)
DerivedMeshmesh_create_derived_render (Scene *scene, Object *ob, CustomDataMask dataMask)
DerivedMeshmesh_create_derived_index_render (Scene *scene, Object *ob, CustomDataMask dataMask, int index)
DerivedMeshmesh_create_derived_view (Scene *scene, Object *ob, CustomDataMask dataMask)
DerivedMeshmesh_create_derived_no_deform (Scene *scene, Object *ob, float(*vertCos)[3], CustomDataMask dataMask)
DerivedMeshmesh_create_derived_no_virtual (Scene *scene, Object *ob, float(*vertCos)[3], CustomDataMask dataMask)
DerivedMeshmesh_create_derived_physics (Scene *scene, Object *ob, float(*vertCos)[3], CustomDataMask dataMask)
DerivedMeshmesh_create_derived_no_deform_render (Scene *scene, Object *ob, float(*vertCos)[3], CustomDataMask dataMask)
DerivedMesheditmesh_get_derived_cage_and_final (Scene *scene, Object *obedit, EditMesh *em, DerivedMesh **final_r, CustomDataMask dataMask)
DerivedMesheditmesh_get_derived_cage (Scene *scene, Object *obedit, EditMesh *em, CustomDataMask dataMask)
DerivedMesheditmesh_get_derived_base (Object *UNUSED(obedit), EditMesh *em)
static void make_vertexcosnos__mapFunc (void *userData, int index, float *co, float *no_f, short *no_s)
float * mesh_get_mapped_verts_nors (Scene *scene, Object *ob)
static int GetNumFaces (const SMikkTSpaceContext *pContext)
static int GetNumVertsOfFace (const SMikkTSpaceContext *pContext, const int face_num)
static void GetPosition (const SMikkTSpaceContext *pContext, float fPos[], const int face_num, const int vert_index)
static void GetTextureCoordinate (const SMikkTSpaceContext *pContext, float fUV[], const int face_num, const int vert_index)
static void GetNormal (const SMikkTSpaceContext *pContext, float fNorm[], const int face_num, const int vert_index)
static void SetTSpace (const SMikkTSpaceContext *pContext, const float fvTangent[], const float fSign, const int face_num, const int iVert)
void DM_add_tangent_layer (DerivedMesh *dm)
void DM_calc_auto_bump_scale (DerivedMesh *dm)
void DM_vertex_attributes_from_gpu (DerivedMesh *dm, GPUVertexAttribs *gattribs, DMVertexAttribs *attribs)
void DM_set_object_boundbox (Object *ob, DerivedMesh *dm)

Variables

GLubyte stipple_quarttone [128]
static ColorBandstored_cb = NULL

Detailed Description

Definition in file DerivedMesh.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
CALC_WP_MULTIPAINT 
CALC_WP_AUTO_NORMALIZE 

Definition at line 640 of file DerivedMesh.c.


Function Documentation

static void add_orco_dm ( Object ob,
EditMesh em,
DerivedMesh dm,
DerivedMesh orcodm,
int  layer 
) [static]
static void add_weight_mcol_dm ( Object ob,
DerivedMesh dm,
int const  draw_flag 
) [static]
static unsigned char* calc_weightpaint_vert_array ( Object ob,
int const  draw_flag,
ColorBand coba 
) [static]
static void calc_weightpaint_vert_color ( unsigned char  r_col[4],
MDeformVert dv,
ColorBand coba,
const int  defbase_tot,
const int  defbase_act,
const char *  dg_flags,
const int  selected,
const int  draw_flag 
) [static]
static void clear_mesh_caches ( Object ob) [static]
static DerivedMesh* create_orco_dm ( Object ob,
Mesh me,
EditMesh em,
int  layer 
) [static]
void DM_add_edge_layer ( DerivedMesh dm,
int  type,
int  alloctype,
void *  layer 
)
void DM_add_face_layer ( DerivedMesh dm,
int  type,
int  alloctype,
void *  layer 
)
void DM_add_tangent_layer ( DerivedMesh dm)
void DM_add_vert_layer ( DerivedMesh dm,
int  type,
int  alloctype,
void *  layer 
)
void DM_calc_auto_bump_scale ( DerivedMesh dm)
void DM_copy_edge_data ( DerivedMesh source,
DerivedMesh dest,
int  source_index,
int  dest_index,
int  count 
)
void DM_copy_face_data ( DerivedMesh source,
DerivedMesh dest,
int  source_index,
int  dest_index,
int  count 
)
void DM_copy_vert_data ( DerivedMesh source,
DerivedMesh dest,
int  source_index,
int  dest_index,
int  count 
)
static MEdge* dm_dupEdgeArray ( DerivedMesh dm) [static]

Definition at line 136 of file DerivedMesh.c.

References DerivedMesh::copyEdgeArray, DerivedMesh::getNumEdges, and MEM_callocN().

Referenced by DM_init_funcs().

static MFace* dm_dupFaceArray ( DerivedMesh dm) [static]

Definition at line 146 of file DerivedMesh.c.

References DerivedMesh::copyFaceArray, DerivedMesh::getNumFaces, and MEM_callocN().

Referenced by DM_init_funcs().

static MVert* dm_dupVertArray ( DerivedMesh dm) [static]

Definition at line 126 of file DerivedMesh.c.

References DerivedMesh::copyVertArray, DerivedMesh::getNumVerts, and MEM_callocN().

Referenced by DM_init_funcs().

void DM_free_edge_data ( struct DerivedMesh dm,
int  index,
int  count 
)

Definition at line 403 of file DerivedMesh.c.

References CustomData_free_elem(), and DerivedMesh::edgeData.

void DM_free_face_data ( struct DerivedMesh dm,
int  index,
int  count 
)

Definition at line 408 of file DerivedMesh.c.

References CustomData_free_elem(), and DerivedMesh::faceData.

Referenced by arrayModifier_doArray().

void DM_free_vert_data ( struct DerivedMesh dm,
int  index,
int  count 
)

Definition at line 398 of file DerivedMesh.c.

References CustomData_free_elem(), and DerivedMesh::vertData.

Referenced by arrayModifier_doArray().

void DM_from_template ( DerivedMesh dm,
DerivedMesh source,
DerivedMeshType  type,
int  numVerts,
int  numEdges,
int  numFaces 
)
void* DM_get_edge_data ( DerivedMesh dm,
int  index,
int  type 
)

Definition at line 328 of file DerivedMesh.c.

References CustomData_get(), and DerivedMesh::edgeData.

Referenced by cdDM_create(), DM_init_funcs(), and getCCGDerivedMesh().

void* DM_get_edge_data_layer ( DerivedMesh dm,
int  type 
)
void* DM_get_face_data ( DerivedMesh dm,
int  index,
int  type 
)

Definition at line 333 of file DerivedMesh.c.

References CustomData_get(), and DerivedMesh::faceData.

Referenced by cdDM_create(), DM_init_funcs(), and getCCGDerivedMesh().

void* DM_get_face_data_layer ( DerivedMesh dm,
int  type 
)
void* DM_get_vert_data ( DerivedMesh dm,
int  index,
int  type 
)
void* DM_get_vert_data_layer ( DerivedMesh dm,
int  type 
)
static MEdge* dm_getEdgeArray ( DerivedMesh dm) [static]
static MFace* dm_getFaceArray ( DerivedMesh dm) [static]
static MVert* dm_getVertArray ( DerivedMesh dm) [static]
void DM_init ( DerivedMesh dm,
DerivedMeshType  type,
int  numVerts,
int  numEdges,
int  numFaces 
)
void DM_init_funcs ( DerivedMesh dm)
void DM_interp_edge_data ( DerivedMesh source,
DerivedMesh dest,
int *  src_indices,
float *  weights,
EdgeVertWeight vert_weights,
int  count,
int  dest_index 
)

Definition at line 421 of file DerivedMesh.c.

References CustomData_interp(), and DerivedMesh::edgeData.

void DM_interp_face_data ( DerivedMesh source,
DerivedMesh dest,
int *  src_indices,
float *  weights,
FaceVertWeight vert_weights,
int  count,
int  dest_index 
)

Definition at line 430 of file DerivedMesh.c.

References CustomData_interp(), and DerivedMesh::faceData.

Referenced by getCCGDerivedMesh().

void DM_interp_vert_data ( DerivedMesh source,
DerivedMesh dest,
int *  src_indices,
float *  weights,
int  count,
int  dest_index 
)

Definition at line 413 of file DerivedMesh.c.

References CustomData_interp(), NULL, and DerivedMesh::vertData.

Referenced by getCCGDerivedMesh().

int DM_release ( DerivedMesh dm)
void DM_set_edge_data ( DerivedMesh dm,
int  index,
int  type,
void *  data 
)

Definition at line 367 of file DerivedMesh.c.

References CustomData_set(), and DerivedMesh::edgeData.

void DM_set_face_data ( DerivedMesh dm,
int  index,
int  type,
void *  data 
)

Definition at line 372 of file DerivedMesh.c.

References CustomData_set(), and DerivedMesh::faceData.

void DM_set_object_boundbox ( Object ob,
DerivedMesh dm 
)
void DM_set_only_copy ( DerivedMesh dm,
CustomDataMask  mask 
)
void DM_set_vert_data ( DerivedMesh dm,
int  index,
int  type,
void *  data 
)

Definition at line 362 of file DerivedMesh.c.

References CustomData_set(), and DerivedMesh::vertData.

Referenced by editmesh_get_derived().

void DM_swap_face_data ( DerivedMesh dm,
int  index,
const int *  corner_indices 
)

Definition at line 439 of file DerivedMesh.c.

References CustomData_swap(), and DerivedMesh::faceData.

Referenced by applyModifier(), and doMirrorOnAxis().

void DM_to_mesh ( DerivedMesh dm,
Mesh me 
)
void DM_to_meshkey ( DerivedMesh dm,
Mesh me,
KeyBlock kb 
)
void DM_vertex_attributes_from_gpu ( DerivedMesh dm,
GPUVertexAttribs gattribs,
DMVertexAttribs attribs 
)
static void editmesh_build_data ( Scene scene,
Object obedit,
EditMesh em,
CustomDataMask  dataMask 
) [static]
static void editmesh_calc_modifiers ( Scene scene,
Object ob,
EditMesh em,
DerivedMesh **  cage_r,
DerivedMesh **  final_r,
CustomDataMask  dataMask 
) [static]
DerivedMesh* editmesh_get_derived_base ( Object UNUSEDobedit,
EditMesh em 
)

Definition at line 1586 of file DerivedMesh.c.

References editmesh_get_derived(), and NULL.

DerivedMesh* editmesh_get_derived_cage ( Scene scene,
Object obedit,
EditMesh em,
CustomDataMask  dataMask 
)
DerivedMesh* editmesh_get_derived_cage_and_final ( Scene scene,
Object obedit,
EditMesh em,
DerivedMesh **  final_r,
CustomDataMask  dataMask 
)
float(* editmesh_get_vertex_cos ( EditMesh em,
int *  numVerts_r 
) )[3]
int editmesh_modifier_is_enabled ( Scene scene,
ModifierData md,
DerivedMesh dm 
)
static float* get_editmesh_orco_verts ( EditMesh em) [static]
static void* get_orco_coords_dm ( Object ob,
EditMesh em,
int  layer,
int *  free 
) [static]
static void GetNormal ( const SMikkTSpaceContext pContext,
float  fNorm[],
const int  face_num,
const int  vert_index 
) [static]
static int GetNumFaces ( const SMikkTSpaceContext pContext) [static]

Definition at line 1665 of file DerivedMesh.c.

References SMikkTSpaceContext::m_pUserData, and SGLSLMeshToTangent::numFaces.

Referenced by DM_add_tangent_layer().

static int GetNumVertsOfFace ( const SMikkTSpaceContext pContext,
const int  face_num 
) [static]
static void GetPosition ( const SMikkTSpaceContext pContext,
float  fPos[],
const int  face_num,
const int  vert_index 
) [static]
static void GetTextureCoordinate ( const SMikkTSpaceContext pContext,
float  fUV[],
const int  face_num,
const int  vert_index 
) [static]
static void make_vertexcosnos__mapFunc ( void *  userData,
int  index,
float *  co,
float *  no_f,
short *  no_s 
) [static]

Definition at line 1594 of file DerivedMesh.c.

References copy_v3_v3(), and normal_short_to_float_v3().

Referenced by mesh_get_mapped_verts_nors().

void makeDerivedMesh ( Scene scene,
Object ob,
EditMesh em,
CustomDataMask  dataMask 
)
static void mesh_build_data ( Scene scene,
Object ob,
CustomDataMask  dataMask 
) [static]
static void mesh_calc_modifiers ( Scene scene,
Object ob,
float(*)  inputVertexCos[3],
DerivedMesh **  deform_r,
DerivedMesh **  final_r,
int  useRenderParams,
int  useDeform,
int  needMapping,
CustomDataMask  dataMask,
int  index,
int  useCache 
) [static]

Definition at line 800 of file DerivedMesh.c.

References add_orco_dm(), add_weight_mcol_dm(), ModifierTypeInfo::applyModifier, ToolSettings::auto_normalize, BLI_linklist_free(), CALC_WP_AUTO_NORMALIZE, CALC_WP_MULTIPAINT, CD_CALLOC, CD_CLOTH_ORCO, CD_DEFAULT, CD_MASK_CLOTH_ORCO, CD_MASK_ORCO, CD_MASK_ORIGINDEX, CD_MASK_ORIGSPACE, CD_MASK_WEIGHT_MCOL, CD_ORCO, CD_ORIGINDEX, CD_ORIGSPACE, CDDM_apply_vert_coords(), CDDM_calc_normals(), CDDM_copy(), CDDM_from_mesh(), create_orco_dm(), CustomData_has_layer(), Object::data, ModifierTypeInfo::deformVerts, ModifierTypeInfo::dependsOnNormals, dependsOnTime(), ModifierTypeInfo::dependsOnTime, DM_add_edge_layer(), DM_add_face_layer(), DM_add_vert_layer(), DM_get_edge_data_layer(), DM_get_face_data_layer(), DM_get_vert_data_layer(), DM_set_only_copy(), DM_TYPE_CDDM, eModifierMode_Realtime, eModifierMode_Render, eModifierType_Armature, eModifierType_DynamicPaint, eModifierType_Multires, eModifierTypeFlag_RequiresOriginalData, eModifierTypeType_OnlyDeform, DerivedMesh::faceData, FALSE, ListBase::first, ModifierTypeInfo::flags, Sculpt::flags, Object::gameflag, GET_INT_FROM_POINTER, get_multires_modifier(), DerivedMesh::getNumVerts, DerivedMesh::getVertCos, LinkNode::link, MEM_freeN(), MEM_mallocN(), mesh_getVertexCos(), Object::mode, modifier_freeTemporaryData(), modifier_isEnabled(), modifier_setError(), modifier_supportsMapping(), Object::modifiers, modifiers_calcDataMasks(), modifiers_clearErrors(), modifiers_getVirtualModifierList(), modifiers_indexInObject(), modifierType_getInfo(), mti, ToolSettings::multipaint, ModifierData::next, LinkNode::next, NULL, DerivedMesh::numEdgeData, DerivedMesh::numFaceData, DerivedMesh::numVertData, OB_MODE_SCULPT, OB_MODE_WEIGHT_PAINT, OB_NAVMESH, range_vn_i(), DerivedMesh::release, ModifierTypeInfo::requiredDataMask, ModifierData::scene, Object::sculpt, ToolSettings::sculpt, SCULPT_ONLY_DEFORM, MultiresModifierData::sculptlvl, Scene::toolsettings, Mesh::totvert, DerivedMesh::type, ModifierData::type, and ModifierTypeInfo::type.

Referenced by mesh_build_data(), mesh_create_derived_index_render(), mesh_create_derived_no_deform(), mesh_create_derived_no_deform_render(), mesh_create_derived_no_virtual(), mesh_create_derived_physics(), mesh_create_derived_render(), and mesh_create_derived_view().

DerivedMesh* mesh_create_derived ( Mesh me,
Object ob,
float(*)  vertCos[3] 
)
DerivedMesh* mesh_create_derived_for_modifier ( Scene scene,
Object ob,
ModifierData md 
)
DerivedMesh* mesh_create_derived_index_render ( Scene scene,
Object ob,
CustomDataMask  dataMask,
int  index 
)

Definition at line 1499 of file DerivedMesh.c.

References mesh_calc_modifiers(), and NULL.

Referenced by initElbeemMesh().

DerivedMesh* mesh_create_derived_no_deform ( Scene scene,
Object ob,
float(*)  vertCos[3],
CustomDataMask  dataMask 
)

Definition at line 1517 of file DerivedMesh.c.

References mesh_calc_modifiers(), and NULL.

Referenced by mesh_deform_bind().

DerivedMesh* mesh_create_derived_no_deform_render ( Scene scene,
Object ob,
float(*)  vertCos[3],
CustomDataMask  dataMask 
)

Definition at line 1547 of file DerivedMesh.c.

References mesh_calc_modifiers(), and NULL.

DerivedMesh* mesh_create_derived_no_virtual ( Scene scene,
Object ob,
float(*)  vertCos[3],
CustomDataMask  dataMask 
)
DerivedMesh* mesh_create_derived_physics ( Scene scene,
Object ob,
float(*)  vertCos[3],
CustomDataMask  dataMask 
)

Definition at line 1537 of file DerivedMesh.c.

References mesh_calc_modifiers(), and NULL.

Referenced by BL_ModifierDeformer::GetPhysicsMesh().

DerivedMesh* mesh_create_derived_render ( Scene scene,
Object ob,
CustomDataMask  dataMask 
)
DerivedMesh* mesh_create_derived_view ( Scene scene,
Object ob,
CustomDataMask  dataMask 
)

Definition at line 1508 of file DerivedMesh.c.

References mesh_calc_modifiers(), and NULL.

Referenced by meshdeform_bind_exec(), and NewBooleanMesh().

DerivedMesh* mesh_get_derived_deform ( Scene scene,
Object ob,
CustomDataMask  dataMask 
)
DerivedMesh* mesh_get_derived_final ( Scene scene,
Object ob,
CustomDataMask  dataMask 
)
float* mesh_get_mapped_verts_nors ( Scene scene,
Object ob 
)
static void SetTSpace ( const SMikkTSpaceContext pContext,
const float  fvTangent[],
const float  fSign,
const int  face_num,
const int  iVert 
) [static]
void vDM_ColorBand_store ( ColorBand coba)

Definition at line 715 of file DerivedMesh.c.

Referenced by init_userdef_do_versions().

void weight_to_rgb ( float  r_rgb[3],
const float  weight 
)
static void weightpaint_color ( unsigned char  r_col[4],
ColorBand coba,
const float  input 
) [static]

Definition at line 645 of file DerivedMesh.c.

References do_colorband(), and weight_to_rgb().

Referenced by calc_weightpaint_vert_array(), and calc_weightpaint_vert_color().


Variable Documentation

GLubyte stipple_quarttone[128]

Definition at line 82 of file glutil.c.

Referenced by ccgDM_drawMappedFaces(), draw_uvs(), and emDM_drawMappedFaces().

ColorBand* stored_cb = NULL [static]

Definition at line 713 of file DerivedMesh.c.

Referenced by add_weight_mcol_dm().