Blender V2.61 - r43446
|
#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 MVert * | dm_getVertArray (DerivedMesh *dm) |
static MEdge * | dm_getEdgeArray (DerivedMesh *dm) |
static MFace * | dm_getFaceArray (DerivedMesh *dm) |
static MVert * | dm_dupVertArray (DerivedMesh *dm) |
static MEdge * | dm_dupEdgeArray (DerivedMesh *dm) |
static MFace * | dm_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) |
DerivedMesh * | mesh_create_derived (Mesh *me, Object *ob, float(*vertCos)[3]) |
DerivedMesh * | mesh_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 DerivedMesh * | create_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) |
DerivedMesh * | mesh_get_derived_final (Scene *scene, Object *ob, CustomDataMask dataMask) |
DerivedMesh * | mesh_get_derived_deform (Scene *scene, Object *ob, CustomDataMask dataMask) |
DerivedMesh * | mesh_create_derived_render (Scene *scene, Object *ob, CustomDataMask dataMask) |
DerivedMesh * | mesh_create_derived_index_render (Scene *scene, Object *ob, CustomDataMask dataMask, int index) |
DerivedMesh * | mesh_create_derived_view (Scene *scene, Object *ob, CustomDataMask dataMask) |
DerivedMesh * | mesh_create_derived_no_deform (Scene *scene, Object *ob, float(*vertCos)[3], CustomDataMask dataMask) |
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) |
DerivedMesh * | mesh_create_derived_no_deform_render (Scene *scene, Object *ob, float(*vertCos)[3], CustomDataMask dataMask) |
DerivedMesh * | editmesh_get_derived_cage_and_final (Scene *scene, Object *obedit, EditMesh *em, DerivedMesh **final_r, CustomDataMask dataMask) |
DerivedMesh * | editmesh_get_derived_cage (Scene *scene, Object *obedit, EditMesh *em, CustomDataMask dataMask) |
DerivedMesh * | editmesh_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 ColorBand * | stored_cb = NULL |
Definition in file DerivedMesh.c.
anonymous enum |
Definition at line 640 of file DerivedMesh.c.
static void add_orco_dm | ( | Object * | ob, |
EditMesh * | em, | ||
DerivedMesh * | dm, | ||
DerivedMesh * | orcodm, | ||
int | layer | ||
) | [static] |
Definition at line 565 of file DerivedMesh.c.
References CD_CALLOC, CD_ORCO, Object::data, DM_add_vert_layer(), DM_get_vert_data_layer(), addon::engine::free(), get_orco_coords_dm(), DerivedMesh::getNumVerts, DerivedMesh::getVertCos, MEM_callocN(), MEM_freeN(), NULL, and transform_mesh_orco_verts().
Referenced by editmesh_calc_modifiers(), and mesh_calc_modifiers().
static void add_weight_mcol_dm | ( | Object * | ob, |
DerivedMesh * | dm, | ||
int const | draw_flag | ||
) | [static] |
Definition at line 757 of file DerivedMesh.c.
References calc_weightpaint_vert_array(), CD_ASSIGN, CD_WEIGHT_MCOL, copy_v4_v4_char(), CustomData_add_layer(), Object::data, DerivedMesh::faceData, i, MEM_freeN(), MEM_mallocN(), Mesh::mface, DerivedMesh::numFaceData, stored_cb, and Mesh::totface.
Referenced by mesh_calc_modifiers().
static unsigned char* calc_weightpaint_vert_array | ( | Object * | ob, |
int const | draw_flag, | ||
ColorBand * | coba | ||
) | [static] |
Definition at line 725 of file DerivedMesh.c.
References Object::actdef, BLI_countlist(), calc_weightpaint_vert_color(), Object::data, Object::defbase, Mesh::dvert, fill_vn_i(), get_selected_defgroups(), i, MEM_freeN(), MEM_mallocN(), Mesh::totvert, and weightpaint_color().
Referenced by add_weight_mcol_dm().
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] |
Definition at line 659 of file DerivedMesh.c.
References CALC_WP_AUTO_NORMALIZE, CALC_WP_MULTIPAINT, CLAMP(), MDeformWeight::def_nr, defvert_find_weight(), MDeformVert::dw, FALSE, i, MDeformVert::totweight, TRUE, MDeformWeight::weight, and weightpaint_color().
Referenced by calc_weightpaint_vert_array().
static void clear_mesh_caches | ( | Object * | ob | ) | [static] |
Definition at line 1380 of file DerivedMesh.c.
References Object::bb, Mesh::bb, Object::data, Object::derivedDeform, Object::derivedFinal, Object::disp, freedisplist(), MEM_freeN(), DerivedMesh::needsFree, NULL, object_sculpt_modifiers_changed(), DerivedMesh::release, and Object::sculpt.
Referenced by editmesh_build_data(), and mesh_build_data().
static DerivedMesh* create_orco_dm | ( | Object * | ob, |
Mesh * | me, | ||
EditMesh * | em, | ||
int | layer | ||
) | [static] |
Definition at line 544 of file DerivedMesh.c.
References CDDM_apply_vert_coords(), CDDM_calc_normals(), CDDM_from_editmesh(), CDDM_from_mesh(), addon::engine::free(), get_orco_coords_dm(), and MEM_freeN().
Referenced by editmesh_calc_modifiers(), and mesh_calc_modifiers().
void DM_add_edge_layer | ( | DerivedMesh * | dm, |
int | type, | ||
int | alloctype, | ||
void * | layer | ||
) |
Definition at line 313 of file DerivedMesh.c.
References CustomData_add_layer(), DerivedMesh::edgeData, and DerivedMesh::numEdgeData.
Referenced by ccgDM_get_edge_data_layer(), and mesh_calc_modifiers().
void DM_add_face_layer | ( | DerivedMesh * | dm, |
int | type, | ||
int | alloctype, | ||
void * | layer | ||
) |
Definition at line 318 of file DerivedMesh.c.
References CustomData_add_layer(), DerivedMesh::faceData, and DerivedMesh::numFaceData.
Referenced by ccgDM_get_face_data_layer(), DM_add_tangent_layer(), editmesh_calc_modifiers(), emDM_getFaceDataArray(), and mesh_calc_modifiers().
void DM_add_tangent_layer | ( | DerivedMesh * | dm | ) |
Definition at line 1740 of file DerivedMesh.c.
References BLI_memarena_free(), BLI_memarena_new(), BLI_MEMARENA_STD_BUFSIZE, BLI_memarena_use_calloc(), CD_CALLOC, CD_MTFACE, CD_NORMAL, CD_ORCO, CD_TANGENT, MVert::co, CustomData_get_layer_index(), DM_add_face_layer(), DM_get_face_data_layer(), DerivedMesh::faceData, find_vertex_tangent(), genTangSpaceDefault(), DerivedMesh::getFaceArray, DerivedMesh::getFaceDataArray, GetNormal(), GetNumFaces(), DerivedMesh::getNumFaces, DerivedMesh::getNumVerts, GetNumVertsOfFace(), GetPosition(), GetTextureCoordinate(), DerivedMesh::getVertArray, DerivedMesh::getVertDataArray, i, len(), SMikkTSpaceInterface::m_getNormal, SMikkTSpaceInterface::m_getNumFaces, SMikkTSpaceInterface::m_getNumVerticesOfFace, SMikkTSpaceInterface::m_getPosition, SMikkTSpaceInterface::m_getTexCoord, SMikkTSpaceContext::m_pInterface, SMikkTSpaceContext::m_pUserData, SMikkTSpaceInterface::m_setTSpaceBasic, map_to_sphere(), MEM_callocN(), MEM_freeN(), SGLSLMeshToTangent::mface, SGLSLMeshToTangent::mtface, SGLSLMeshToTangent::mvert, normal_quad_v3(), normal_tri_v3(), normalize_v3_v3(), NULL, SGLSLMeshToTangent::numFaces, SGLSLMeshToTangent::orco, SGLSLMeshToTangent::precomputedFaceNormals, SetTSpace(), sum_or_add_vertex_tangent(), SGLSLMeshToTangent::tangent, tangent_from_uv(), MTFace::uv, MFace::v1, MFace::v2, MFace::v3, and MFace::v4.
Referenced by BL_ConvertMesh(), DM_vertex_attributes_from_gpu(), do_multires_bake(), and init_render_mesh().
void DM_add_vert_layer | ( | DerivedMesh * | dm, |
int | type, | ||
int | alloctype, | ||
void * | layer | ||
) |
Definition at line 308 of file DerivedMesh.c.
References CustomData_add_layer(), DerivedMesh::numVertData, and DerivedMesh::vertData.
Referenced by add_orco_dm(), ccgDM_get_vert_data_layer(), distribute_threads_init_data(), do_hair_dynamics(), editmesh_get_derived(), get_dm(), and mesh_calc_modifiers().
void DM_calc_auto_bump_scale | ( | DerivedMesh * | dm | ) |
Definition at line 1885 of file DerivedMesh.c.
References DerivedMesh::auto_bump_scale, CD_MTFACE, MVert::co, copy_v2_v2(), cross_v3_v3v3(), dot_v2v2(), dot_v3v3(), equals_v2v2(), equals_v3v3(), fabsf, DerivedMesh::getFaceArray, DerivedMesh::getFaceDataArray, DerivedMesh::getNumFaces, DerivedMesh::getVertArray, i, indices, len_v3(), norm(), offs, sqrtf, sub_v2_v2v2(), sub_v3_v3v3(), MTFace::uv, MFace::v1, MFace::v2, MFace::v3, and MFace::v4.
Referenced by DM_vertex_attributes_from_gpu().
void DM_copy_edge_data | ( | DerivedMesh * | source, |
DerivedMesh * | dest, | ||
int | source_index, | ||
int | dest_index, | ||
int | count | ||
) |
Definition at line 384 of file DerivedMesh.c.
References CustomData_copy_data(), and DerivedMesh::edgeData.
Referenced by applyModifier(), arrayModifier_doArray(), CDDM_from_smoothmesh(), and doMirrorOnAxis().
void DM_copy_face_data | ( | DerivedMesh * | source, |
DerivedMesh * | dest, | ||
int | source_index, | ||
int | dest_index, | ||
int | count | ||
) |
Definition at line 391 of file DerivedMesh.c.
References CustomData_copy_data(), and DerivedMesh::faceData.
Referenced by applyModifier(), arrayModifier_doArray(), CDDM_from_smoothmesh(), doMirrorOnAxis(), explodeMesh(), and get_dface().
void DM_copy_vert_data | ( | DerivedMesh * | source, |
DerivedMesh * | dest, | ||
int | source_index, | ||
int | dest_index, | ||
int | count | ||
) |
Definition at line 377 of file DerivedMesh.c.
References CustomData_copy_data(), and DerivedMesh::vertData.
Referenced by applyModifier(), arrayModifier_doArray(), CDDM_from_smoothmesh(), cutEdges(), doMirrorOnAxis(), explodeMesh(), and getCCGDerivedMesh().
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 | ||
) |
Definition at line 190 of file DerivedMesh.c.
References CD_CALLOC, CD_MASK_DERIVEDMESH, CustomData_copy(), DM_init_funcs(), DerivedMesh::edgeData, DerivedMesh::faceData, DerivedMesh::needsFree, DerivedMesh::numEdgeData, DerivedMesh::numFaceData, DerivedMesh::numVertData, DerivedMesh::type, and DerivedMesh::vertData.
Referenced by CDDM_copy(), CDDM_from_template(), and getCCGDerivedMesh().
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 | ||
) |
Definition at line 346 of file DerivedMesh.c.
References CD_MEDGE, CustomData_get_layer(), DerivedMesh::edgeData, and DerivedMesh::getEdgeArray.
Referenced by ccgDM_get_edge_data_layer(), cdDM_create(), cdDM_drawMappedEdges(), cdDM_foreachMappedEdge(), DM_init_funcs(), and mesh_calc_modifiers().
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 | ||
) |
Definition at line 354 of file DerivedMesh.c.
References CD_MFACE, CustomData_get_layer(), DerivedMesh::faceData, and DerivedMesh::getFaceArray.
Referenced by add_tface_color_layer(), ccgDM_drawFacesTex_common(), ccgDM_drawUVEdges(), ccgDM_get_face_data_layer(), cdDM_create(), cdDM_drawFacesTex_common(), cdDM_drawMappedFaces(), cdDM_drawUVEdges(), cdDM_foreachMappedFaceCenter(), DM_add_tangent_layer(), DM_init_funcs(), do_multires_bake(), draw_dm_faces_sel(), draw_mesh_fancy(), draw_mesh_textured_old(), emDM_getFaceDataArray(), gpu_buffer_color_type(), GPU_buffer_copy_uv(), GPU_buffer_copy_uvedge(), gpu_buffer_setup_type(), and mesh_calc_modifiers().
void* DM_get_vert_data | ( | DerivedMesh * | dm, |
int | index, | ||
int | type | ||
) |
Definition at line 323 of file DerivedMesh.c.
References CustomData_get(), and DerivedMesh::vertData.
Referenced by cdDM_create(), DM_init_funcs(), doMirrorOnAxis(), and getCCGDerivedMesh().
void* DM_get_vert_data_layer | ( | DerivedMesh * | dm, |
int | type | ||
) |
Definition at line 338 of file DerivedMesh.c.
References CD_MVERT, CustomData_get_layer(), DerivedMesh::getVertArray, and DerivedMesh::vertData.
Referenced by add_orco_dm(), ccgDM_get_vert_data_layer(), cdDM_create(), cdDM_foreachMappedVert(), DM_init_funcs(), do_hair_dynamics(), mesh_calc_modifiers(), psys_face_mat(), and psys_mat_hair_to_orco().
static MEdge* dm_getEdgeArray | ( | DerivedMesh * | dm | ) | [static] |
Definition at line 98 of file DerivedMesh.c.
References CD_CALLOC, CD_FLAG_TEMPORARY, CD_MEDGE, DerivedMesh::copyEdgeArray, CustomData_add_layer(), CustomData_get_layer(), CustomData_set_layer_flag(), DerivedMesh::edgeData, DerivedMesh::getNumEdges, and NULL.
Referenced by DM_init_funcs().
static MFace* dm_getFaceArray | ( | DerivedMesh * | dm | ) | [static] |
Definition at line 112 of file DerivedMesh.c.
References CD_CALLOC, CD_FLAG_TEMPORARY, CD_MFACE, DerivedMesh::copyFaceArray, CustomData_add_layer(), CustomData_get_layer(), CustomData_set_layer_flag(), DerivedMesh::faceData, DerivedMesh::getNumFaces, and NULL.
Referenced by DM_init_funcs().
static MVert* dm_getVertArray | ( | DerivedMesh * | dm | ) | [static] |
Definition at line 84 of file DerivedMesh.c.
References CD_CALLOC, CD_FLAG_TEMPORARY, CD_MVERT, DerivedMesh::copyVertArray, CustomData_add_layer(), CustomData_get_layer(), CustomData_set_layer_flag(), DerivedMesh::getNumVerts, NULL, and DerivedMesh::vertData.
Referenced by DM_init_funcs().
void DM_init | ( | DerivedMesh * | dm, |
DerivedMeshType | type, | ||
int | numVerts, | ||
int | numEdges, | ||
int | numFaces | ||
) |
Definition at line 176 of file DerivedMesh.c.
References DerivedMesh::auto_bump_scale, DM_init_funcs(), DerivedMesh::needsFree, DerivedMesh::numEdgeData, DerivedMesh::numFaceData, DerivedMesh::numVertData, and DerivedMesh::type.
Referenced by CDDM_from_mesh(), CDDM_new(), and editmesh_get_derived().
void DM_init_funcs | ( | DerivedMesh * | dm | ) |
Definition at line 156 of file DerivedMesh.c.
References DerivedMesh::bvhCache, bvhcache_init(), dm_dupEdgeArray(), dm_dupFaceArray(), dm_dupVertArray(), DM_get_edge_data(), DM_get_edge_data_layer(), DM_get_face_data(), DM_get_face_data_layer(), DM_get_vert_data(), DM_get_vert_data_layer(), dm_getEdgeArray(), dm_getFaceArray(), dm_getVertArray(), DerivedMesh::dupEdgeArray, DerivedMesh::dupFaceArray, DerivedMesh::dupVertArray, DerivedMesh::getEdgeArray, DerivedMesh::getEdgeData, DerivedMesh::getEdgeDataArray, DerivedMesh::getFaceArray, DerivedMesh::getFaceData, DerivedMesh::getFaceDataArray, DerivedMesh::getVertArray, DerivedMesh::getVertData, and DerivedMesh::getVertDataArray.
Referenced by DM_from_template(), and DM_init().
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 | ) |
Definition at line 210 of file DerivedMesh.c.
References DerivedMesh::bvhCache, bvhcache_free(), CustomData_free(), CustomData_free_temporary(), DerivedMesh::edgeData, DerivedMesh::faceData, GPU_drawobject_free(), DerivedMesh::needsFree, DerivedMesh::numEdgeData, DerivedMesh::numFaceData, DerivedMesh::numVertData, and DerivedMesh::vertData.
Referenced by ccgDM_release(), cdDM_release(), and emDM_release().
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 | ||
) |
Definition at line 2131 of file DerivedMesh.c.
References Object::bb, boundbox_set_from_min_max(), DerivedMesh::getMinMax, INIT_MINMAX, max, MEM_callocN(), and min.
Referenced by editmesh_build_data(), makeDispListCurveTypes(), and mesh_build_data().
void DM_set_only_copy | ( | DerivedMesh * | dm, |
CustomDataMask | mask | ||
) |
Definition at line 301 of file DerivedMesh.c.
References CustomData_set_only_copy(), DerivedMesh::edgeData, DerivedMesh::faceData, and DerivedMesh::vertData.
Referenced by editmesh_calc_modifiers(), mesh_calc_modifiers(), multires_subdivide(), multiresModifier_base_apply(), and multiresModifier_update().
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 | ||
) |
Definition at line 230 of file DerivedMesh.c.
References CD_ASSIGN, CD_DUPLICATE, CD_MASK_MESH, CD_MDISPS, CD_MEDGE, CD_MFACE, CD_MVERT, CustomData_add_layer(), CustomData_copy(), CustomData_free(), CustomData_get_layer(), CustomData_has_layer(), DerivedMesh::dupEdgeArray, DerivedMesh::dupFaceArray, DerivedMesh::dupVertArray, DerivedMesh::edgeData, DerivedMesh::faceData, Mesh::fdata, DerivedMesh::getNumEdges, DerivedMesh::getNumFaces, DerivedMesh::getNumVerts, Key::id, Mesh::key, mesh_update_customdata_pointers(), NULL, Mesh::totedge, Mesh::totface, Mesh::totvert, ID::us, and DerivedMesh::vertData.
Referenced by convert_exec(), modifier_apply_obdata(), NewBooleanMesh(), and nurbs_to_mesh().
void DM_to_meshkey | ( | DerivedMesh * | dm, |
Mesh * | me, | ||
KeyBlock * | kb | ||
) |
Definition at line 281 of file DerivedMesh.c.
References CD_MVERT, MVert::co, copy_v3_v3(), KeyBlock::data, Key::elemsize, DerivedMesh::getNumVerts, DerivedMesh::getVertDataArray, Mesh::key, MEM_callocN(), MEM_freeN(), KeyBlock::totelem, and Mesh::totvert.
Referenced by join_mesh_shapes_exec(), and modifier_apply_shape().
void DM_vertex_attributes_from_gpu | ( | DerivedMesh * | dm, |
GPUVertexAttribs * | gattribs, | ||
DMVertexAttribs * | attribs | ||
) |
Definition at line 2038 of file DerivedMesh.c.
References DMVertexAttribs::array, DerivedMesh::auto_bump_scale, CD_MCOL, CD_MTFACE, CD_ORCO, CD_TANGENT, CustomData_get_active_layer_index(), CustomData_get_layer_index(), CustomData_get_named_layer_index(), CustomDataLayer::data, DM_add_tangent_layer(), DM_calc_auto_bump_scale(), DM_TYPE_EDITMESH, DMVertexAttribs::emOffset, DerivedMesh::faceData, GPUVertexAttribs::glindex, DMVertexAttribs::glIndex, GPUVertexAttribs::gltexco, DMVertexAttribs::glTexco, GPUVertexAttribs::layer, CustomData::layers, DMVertexAttribs::mcol, GPUVertexAttribs::name, NULL, CustomDataLayer::offset, DMVertexAttribs::orco, DMVertexAttribs::tang, DMVertexAttribs::tface, GPUVertexAttribs::totlayer, DMVertexAttribs::totmcol, DMVertexAttribs::totorco, DMVertexAttribs::tottang, DMVertexAttribs::tottface, DerivedMesh::type, GPUVertexAttribs::type, and DerivedMesh::vertData.
Referenced by ccgDM_drawMappedFacesGLSL(), ccgDM_drawMappedFacesMat(), cdDM_drawMappedFacesGLSL(), cdDM_drawMappedFacesMat(), emDM_drawMappedFacesGLSL(), and emDM_drawMappedFacesMat().
static void editmesh_build_data | ( | Scene * | scene, |
Object * | obedit, | ||
EditMesh * | em, | ||
CustomDataMask | dataMask | ||
) | [static] |
Definition at line 1432 of file DerivedMesh.c.
References clear_mesh_caches(), EditMesh::derivedCage, EditMesh::derivedFinal, DM_set_object_boundbox(), editmesh_calc_modifiers(), EditMesh::lastDataMask, DerivedMesh::needsFree, NULL, and DerivedMesh::release.
Referenced by editmesh_get_derived_cage(), editmesh_get_derived_cage_and_final(), and makeDerivedMesh().
static void editmesh_calc_modifiers | ( | Scene * | scene, |
Object * | ob, | ||
EditMesh * | em, | ||
DerivedMesh ** | cage_r, | ||
DerivedMesh ** | final_r, | ||
CustomDataMask | dataMask | ||
) | [static] |
Definition at line 1194 of file DerivedMesh.c.
References add_orco_dm(), ModifierTypeInfo::applyModifier, ModifierTypeInfo::applyModifierEM, BLI_linklist_free(), CD_DEFAULT, CD_MASK_ORCO, CD_MASK_ORIGINDEX, CD_MASK_ORIGSPACE, CD_ORCO, CD_ORIGSPACE, CDDM_apply_vert_coords(), CDDM_calc_normals(), CDDM_copy(), CDDM_from_editmesh(), create_orco_dm(), CustomData_has_layer(), Object::data, ModifierTypeInfo::deformVerts, ModifierTypeInfo::deformVertsEM, DM_add_face_layer(), DM_set_only_copy(), editmesh_get_derived(), editmesh_get_vertex_cos(), editmesh_modifier_is_enabled(), eModifierMode_Editmode, eModifierMode_Realtime, eModifierTypeType_OnlyDeform, DerivedMesh::faceData, GET_INT_FROM_POINTER, DerivedMesh::getNumVerts, DerivedMesh::getVertCos, i, LinkNode::link, MEM_dupallocN(), MEM_freeN(), MEM_mallocN(), modifiers_calcDataMasks(), modifiers_clearErrors(), modifiers_getCageIndex(), modifiers_getVirtualModifierList(), modifierType_getInfo(), mti, ModifierData::next, LinkNode::next, NULL, DerivedMesh::release, ModifierTypeInfo::requiredDataMask, and ModifierTypeInfo::type.
Referenced by editmesh_build_data().
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 | ||
) |
Definition at line 1574 of file DerivedMesh.c.
References EditMesh::derivedCage, editmesh_build_data(), and EditMesh::lastDataMask.
Referenced by crazyspace_get_mapped_editverts(), draw_object_backbufsel(), face_duplilist(), mesh_foreachScreenEdge(), mesh_foreachScreenFace(), mesh_foreachScreenVert(), peelObjects(), and vertex_duplilist().
DerivedMesh* editmesh_get_derived_cage_and_final | ( | Scene * | scene, |
Object * | obedit, | ||
EditMesh * | em, | ||
DerivedMesh ** | final_r, | ||
CustomDataMask | dataMask | ||
) |
Definition at line 1560 of file DerivedMesh.c.
References EditMesh::derivedCage, EditMesh::derivedFinal, editmesh_build_data(), and EditMesh::lastDataMask.
Referenced by draw_mesh_object(), draw_uvs(), and meshdeformModifier_do().
float(* editmesh_get_vertex_cos | ( | EditMesh * | em, |
int * | numVerts_r | ||
) | )[3] |
Definition at line 1166 of file DerivedMesh.c.
References BLI_countlist(), EditVert::co, copy_v3_v3(), cos(), i, MEM_mallocN(), and next.
Referenced by editmesh_calc_modifiers(), and editmesh_get_first_deform_matrices().
int editmesh_modifier_is_enabled | ( | Scene * | scene, |
ModifierData * | md, | ||
DerivedMesh * | dm | ||
) |
Definition at line 1180 of file DerivedMesh.c.
References eModifierMode_Editmode, eModifierMode_Realtime, eModifierTypeFlag_RequiresOriginalData, ModifierTypeInfo::flags, modifier_isEnabled(), modifier_setError(), modifierType_getInfo(), mti, and ModifierData::type.
Referenced by editmesh_calc_modifiers(), and editmesh_get_first_deform_matrices().
static float* get_editmesh_orco_verts | ( | EditMesh * | em | ) | [static] |
Definition at line 490 of file DerivedMesh.c.
References EditVert::co, copy_v3_v3(), ListBase::first, MEM_mallocN(), EditVert::next, and EditMesh::verts.
Referenced by get_orco_coords_dm().
Definition at line 514 of file DerivedMesh.c.
References CD_CLOTH_ORCO, CD_ORCO, KeyBlock::data, eModifierType_Cloth, get_editmesh_orco_verts(), get_mesh_orco_verts(), key_get_keyblock(), modifiers_findByType(), NULL, ob_get_key(), ClothSimSettings::shapekey_rest, and ClothModifierData::sim_parms.
Referenced by add_orco_dm(), and create_orco_dm().
static void GetNormal | ( | const SMikkTSpaceContext * | pContext, |
float | fNorm[], | ||
const int | face_num, | ||
const int | vert_index | ||
) | [static] |
Definition at line 1700 of file DerivedMesh.c.
References MVert::co, copy_v3_v3(), MFace::flag, SMikkTSpaceContext::m_pUserData, ME_SMOOTH, SGLSLMeshToTangent::mface, SGLSLMeshToTangent::mvert, normal_quad_v3(), normal_short_to_float_v3(), normal_tri_v3(), SGLSLMeshToTangent::precomputedFaceNormals, MFace::v1, MFace::v2, MFace::v3, and MFace::v4.
Referenced by DM_add_tangent_layer().
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] |
Definition at line 1671 of file DerivedMesh.c.
References SMikkTSpaceContext::m_pUserData, SGLSLMeshToTangent::mface, and MFace::v4.
Referenced by DM_add_tangent_layer().
static void GetPosition | ( | const SMikkTSpaceContext * | pContext, |
float | fPos[], | ||
const int | face_num, | ||
const int | vert_index | ||
) | [static] |
Definition at line 1677 of file DerivedMesh.c.
References MVert::co, co, copy_v3_v3(), SMikkTSpaceContext::m_pUserData, SGLSLMeshToTangent::mface, SGLSLMeshToTangent::mvert, and MFace::v1.
Referenced by DM_add_tangent_layer().
static void GetTextureCoordinate | ( | const SMikkTSpaceContext * | pContext, |
float | fUV[], | ||
const int | face_num, | ||
const int | vert_index | ||
) | [static] |
Definition at line 1685 of file DerivedMesh.c.
References SMikkTSpaceContext::m_pUserData, map_to_sphere(), SGLSLMeshToTangent::mface, SGLSLMeshToTangent::mtface, NULL, SGLSLMeshToTangent::orco, MTFace::uv, and MFace::v1.
Referenced by DM_add_tangent_layer().
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 | ||
) |
Definition at line 1457 of file DerivedMesh.c.
References editmesh_build_data(), and mesh_build_data().
Referenced by crazyspace_get_mapped_editverts(), object_handle_update(), and vertex_parent_set_exec().
static void mesh_build_data | ( | Scene * | scene, |
Object * | ob, | ||
CustomDataMask | dataMask | ||
) | [static] |
Definition at line 1412 of file DerivedMesh.c.
References Scene::basact, clear_mesh_caches(), Object::derivedDeform, Object::derivedFinal, DM_set_object_boundbox(), Object::lastDataMask, mesh_calc_modifiers(), Object::mode, DerivedMesh::needsFree, NULL, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, Base::object, paint_facesel_test(), and paint_vertsel_test().
Referenced by makeDerivedMesh(), mesh_get_derived_deform(), and mesh_get_derived_final().
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] | ||
) |
Definition at line 446 of file DerivedMesh.c.
References CDDM_apply_vert_coords(), CDDM_calc_normals(), CDDM_from_mesh(), and NULL.
Referenced by mesh_create_derived_for_modifier(), and sculpt_get_first_deform_matrices().
DerivedMesh* mesh_create_derived_for_modifier | ( | Scene * | scene, |
Object * | ob, | ||
ModifierData * | md | ||
) |
Definition at line 461 of file DerivedMesh.c.
References ModifierTypeInfo::applyModifier, Object::data, ModifierTypeInfo::deformVerts, eModifierMode_Realtime, eModifierTypeType_OnlyDeform, ModifierTypeInfo::isDisabled, MEM_freeN(), mesh_create_derived(), mesh_getVertexCos(), ModifierData::mode, modifierType_getInfo(), mti, NULL, DerivedMesh::release, ModifierData::scene, ModifierTypeInfo::type, and ModifierData::type.
Referenced by modifier_apply_obdata(), and modifier_apply_shape().
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 | ||
) |
Definition at line 1527 of file DerivedMesh.c.
References mesh_calc_modifiers(), and NULL.
Referenced by KX_NavMeshObject::BuildVertIndArrays(), createVertsTrisData(), and BL_ModifierDeformer::Update().
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 | ||
) |
Definition at line 1490 of file DerivedMesh.c.
References mesh_calc_modifiers(), and NULL.
Referenced by dupli_render_particle_set(), init_render_mesh(), init_render_object_data(), object_handle_update(), pointdensity_cache_object(), pointdensity_cache_psys(), and project_paint_begin().
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 | ||
) |
Definition at line 1479 of file DerivedMesh.c.
References Object::derivedDeform, Object::lastDataMask, and mesh_build_data().
Referenced by brush_add(), connect_hair(), dm_deform_recalc(), draw_mesh_text(), face_duplilist(), get_multires_dm(), join_mesh_shapes_exec(), multires_apply_smat(), particle_intersect_dm(), vertex_duplilist(), and vgroup_fix().
DerivedMesh* mesh_get_derived_final | ( | Scene * | scene, |
Object * | ob, | ||
CustomDataMask | dataMask | ||
) |
Definition at line 1468 of file DerivedMesh.c.
References Object::derivedFinal, Object::lastDataMask, and mesh_build_data().
Referenced by add_verts_to_dgroups(), bbs_mesh_solid(), convert_exec(), draw_mesh_fancy(), draw_object_backbufsel(), draw_object_mesh_instance(), imapaint_pick_uv(), mesh_get_mapped_verts_nors(), mesh_to_curve(), multiresModifier_reshape(), NewBooleanMesh(), GeometryExporter::operator()(), particle_intersect_dm(), peelObjects(), project_paint_begin(), sculpt_undo_restore(), sculpt_update_mesh_elements(), snapObject(), and weight_sample_invoke().
Definition at line 1618 of file DerivedMesh.c.
References CD_MASK_BAREMESH, Object::data, DerivedMesh::foreachMappedVert, DerivedMesh::getVertCo, DerivedMesh::getVertNo, make_vertexcosnos__mapFunc(), MEM_callocN(), mesh_get_derived_final(), NULL, OB_MESH, DerivedMesh::release, Mesh::totvert, and Object::type.
Referenced by vpaint_stroke_test_start(), and wpaint_stroke_test_start().
static void SetTSpace | ( | const SMikkTSpaceContext * | pContext, |
const float | fvTangent[], | ||
const float | fSign, | ||
const int | face_num, | ||
const int | iVert | ||
) | [static] |
Definition at line 1730 of file DerivedMesh.c.
References copy_v3_v3(), SMikkTSpaceContext::m_pUserData, and SGLSLMeshToTangent::tangent.
Referenced by DM_add_tangent_layer().
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 | ||
) |
Definition at line 606 of file DerivedMesh.c.
References blend().
Referenced by draw_new_particle_system(), draw_uvs_stretch(), drawlattice__point(), dynamicPaint_Modifier_apply(), psys_cache_edit_paths(), and weightpaint_color().
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().
GLubyte stipple_quarttone[128] |
Definition at line 82 of file glutil.c.
Referenced by ccgDM_drawMappedFaces(), draw_uvs(), and emDM_drawMappedFaces().
Definition at line 713 of file DerivedMesh.c.
Referenced by add_weight_mcol_dm().