Blender V2.61 - r43446
|
#include "MEM_guardedalloc.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_edgehash.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_mesh.h"
#include "BKE_cdderivedmesh.h"
#include "bmesh_private.h"
Go to the source code of this file.
Functions | |
static void | BME_DMcorners_to_loops (BME_Mesh *bm, CustomData *facedata, int index, BME_Poly *f, int numCol, int numTex) |
static void | BME_DMloops_to_corners (BME_Mesh *bm, CustomData *facedata, int index, BME_Poly *f, int numCol, int numTex) |
static void | BME_corners_to_loops (BME_Mesh *bm, CustomData *facedata, void *face_block, BME_Poly *f, int numCol, int numTex) |
static void | BME_loops_to_corners (BME_Mesh *bm, CustomData *facedata, void *face_block, BME_Poly *f, int numCol, int numTex) |
BME_Mesh * | BME_editmesh_to_bmesh (EditMesh *em) |
void | BME_bmesh_to_editmesh (BME_Mesh *bm, BME_TransData_Head *td, EditMesh *em) |
BME_Mesh * | BME_derivedmesh_to_bmesh (DerivedMesh *dm) |
DerivedMesh * | BME_bmesh_to_derivedmesh (BME_Mesh *bm, DerivedMesh *dm) |
Definition in file BME_conversions.c.
DerivedMesh* BME_bmesh_to_derivedmesh | ( | BME_Mesh * | bm, |
DerivedMesh * | dm | ||
) | [read] |
Definition at line 536 of file BME_conversions.c.
References BLI_countlist(), BLI_edgehash_free(), BLI_edgehash_insert(), BLI_edgehash_lookup(), BLI_edgehash_new(), BME_cycle_length(), BME_DMloops_to_corners(), BME_Vert::bweight, BME_Edge::bweight, MVert::bweight, MEdge::bweight, CD_CALLOC, CD_MASK_BMESH, CD_MLOOPCOL, CD_MTEXPOLY, CD_ORIGINDEX, CDDM_from_template(), CDDM_get_edges(), CDDM_get_faces(), CDDM_get_verts(), MVert::co, BME_Vert::co, BME_Edge::crease, MEdge::crease, CustomData_from_bmesh_block(), CustomData_from_bmeshpoly(), CustomData_merge(), CustomData_number_of_layers(), BME_Vert::data, BME_Edge::data, BME_Poly::data, credits_svn_gen::e, DerivedMesh::edgeData, BME_Mesh::edges, DerivedMesh::faceData, ListBase::first, MEdge::flag, MFace::flag, BME_Vert::flag, MVert::flag, BME_Edge::flag, BME_Poly::flag, DerivedMesh::getEdgeDataArray, DerivedMesh::getFaceDataArray, DerivedMesh::getVertDataArray, i, BME_Mesh::ldata, len(), BME_Poly::loopbase, BME_Poly::mat_nr, MFace::mat_nr, BME_Poly::next, BME_Loop::next, BME_Edge::next, BME_Vert::next, NULL, ORIGINDEX_NONE, BME_Mesh::polys, BME_Loop::prev, test_index_face(), BME_Vert::tflag1, BME_Edge::tflag2, BME_Loop::v, MEdge::v1, MFace::v1, BME_Edge::v1, MEdge::v2, MFace::v2, BME_Edge::v2, MFace::v3, MFace::v4, VECCOPY, DerivedMesh::vertData, and BME_Mesh::verts.
Referenced by applyModifier().
void BME_bmesh_to_editmesh | ( | BME_Mesh * | bm, |
BME_TransData_Head * | td, | ||
EditMesh * | em | ||
) |
Definition at line 349 of file BME_conversions.c.
References BLI_countlist(), BME_cycle_length(), BME_get_transdata(), BME_loops_to_corners(), BME_Vert::bweight, BME_Edge::bweight, EditVert::bweight, EditEdge::bweight, CD_CALLOC, CD_MASK_BMESH, CD_MLOOPCOL, CD_MTEXPOLY, EditVert::co, BME_Edge::crease, EditEdge::crease, CustomData_copy(), CustomData_em_copy_data(), CustomData_from_bmeshpoly(), CustomData_number_of_layers(), EditFace::data, BME_Vert::data, EditVert::data, BME_Edge::data, BME_Poly::data, EditEdge::data, credits_svn_gen::e, EditMesh::edata, BME_Mesh::edges, EditEdge::f, EditVert::f, EditFace::f, EditMesh::fdata, ListBase::first, EditFace::flag, BME_Vert::flag, BME_Edge::flag, BME_Poly::flag, EditEdge::h, EditVert::h, BME_Vert::h, EditFace::h, i, EditVert::keyindex, BME_Mesh::ldata, len(), BME_TransData::loc, BME_Poly::loopbase, EditFace::mat_nr, BME_Poly::mat_nr, ME_FACE_SEL, ME_HIDE, ME_SEAM, ME_SHARP, MEM_freeN(), MEM_mallocN(), BME_Poly::next, BME_Edge::next, BME_Vert::next, NULL, BME_Mesh::polys, SCE_SELECT_EDGE, EditEdge::seam, SELECT, EditMesh::selectmode, EditEdge::sharp, BME_Vert::tflag1, BME_Loop::v, EditMesh::vdata, and BME_Mesh::verts.
Referenced by bevel_menu().
static void BME_corners_to_loops | ( | BME_Mesh * | bm, |
CustomData * | facedata, | ||
void * | face_block, | ||
BME_Poly * | f, | ||
int | numCol, | ||
int | numTex | ||
) | [static] |
Definition at line 156 of file BME_conversions.c.
References MLoopCol::a, MCol::a, MLoopCol::b, MCol::b, CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTEXPOLY, CD_MTFACE, CustomData_bmesh_get_n(), CustomData_em_get_n(), BME_Poly::data, BME_Loop::data, MTexPoly::flag, MTFace::flag, MLoopCol::g, MCol::g, i, BME_Mesh::ldata, BME_Poly::loopbase, MTexPoly::mode, MTFace::mode, BME_Loop::next, MLoopCol::r, MCol::r, MTexPoly::tile, MTFace::tile, MTFace::tpage, MTexPoly::tpage, MTexPoly::transp, MTFace::transp, MTFace::unwrap, MTexPoly::unwrap, MTFace::uv, and MLoopUV::uv.
Referenced by BME_editmesh_to_bmesh().
BME_Mesh* BME_derivedmesh_to_bmesh | ( | DerivedMesh * | dm | ) | [read] |
Definition at line 443 of file BME_conversions.c.
References BLI_edgehash_free(), BLI_edgehash_insert(), BLI_edgehash_lookup(), BLI_edgehash_new(), BME_DMcorners_to_loops(), BME_make_mesh(), BME_ME(), BME_MF(), BME_model_begin(), BME_model_end(), BME_MV(), BME_Vert::bweight, BME_Edge::bweight, MVert::bweight, MEdge::bweight, CD_CALLOC, CD_MASK_BMESH, CD_MLOOPCOL, CD_MTEXPOLY, MVert::co, BME_Edge::crease, MEdge::crease, CustomData_bmesh_init_pool(), CustomData_copy(), CustomData_number_of_layers(), CustomData_to_bmesh_block(), CustomData_to_bmeshpoly(), BME_Vert::data, BME_Edge::data, BME_Poly::data, credits_svn_gen::e, DerivedMesh::edgeData, DerivedMesh::faceData, MEdge::flag, MFace::flag, BME_Vert::flag, MVert::flag, BME_Edge::flag, BME_Poly::flag, DerivedMesh::getEdgeArray, DerivedMesh::getFaceArray, DerivedMesh::getNumEdges, DerivedMesh::getNumFaces, DerivedMesh::getNumVerts, DerivedMesh::getVertArray, i, BME_Mesh::ldata, len(), BME_Poly::mat_nr, MFace::mat_nr, MEM_freeN(), MEM_mallocN(), NULL, MEdge::v1, MFace::v1, MEdge::v2, MFace::v2, MFace::v3, MFace::v4, and DerivedMesh::vertData.
Referenced by applyModifier().
static void BME_DMcorners_to_loops | ( | BME_Mesh * | bm, |
CustomData * | facedata, | ||
int | index, | ||
BME_Poly * | f, | ||
int | numCol, | ||
int | numTex | ||
) | [static] |
Definition at line 61 of file BME_conversions.c.
References MLoopCol::a, MLoopCol::b, CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTEXPOLY, CD_MTFACE, CustomData_bmesh_get_n(), CustomData_get_layer_n(), BME_Poly::data, BME_Loop::data, MTexPoly::flag, MTFace::flag, MLoopCol::g, g, i, BME_Mesh::ldata, BME_Poly::loopbase, MTexPoly::mode, MTFace::mode, BME_Loop::next, MLoopCol::r, MTexPoly::tile, MTFace::tile, MTFace::tpage, MTexPoly::tpage, MTexPoly::transp, MTFace::transp, MTFace::unwrap, MTexPoly::unwrap, MTFace::uv, and MLoopUV::uv.
Referenced by BME_derivedmesh_to_bmesh().
static void BME_DMloops_to_corners | ( | BME_Mesh * | bm, |
CustomData * | facedata, | ||
int | index, | ||
BME_Poly * | f, | ||
int | numCol, | ||
int | numTex | ||
) | [static] |
Definition at line 108 of file BME_conversions.c.
References MLoopCol::a, MCol::a, MLoopCol::b, CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTEXPOLY, CD_MTFACE, CustomData_bmesh_get_n(), CustomData_get_layer_n(), BME_Poly::data, BME_Loop::data, MTexPoly::flag, MTFace::flag, MLoopCol::g, MCol::g, i, BME_Mesh::ldata, BME_Poly::loopbase, MTFace::mode, MTexPoly::mode, BME_Loop::next, MLoopCol::r, MTFace::tile, MTexPoly::tile, MTFace::tpage, MTexPoly::tpage, MTexPoly::transp, MTFace::transp, MTFace::unwrap, MTexPoly::unwrap, MTFace::uv, and MLoopUV::uv.
Referenced by BME_bmesh_to_derivedmesh().
Definition at line 250 of file BME_conversions.c.
References BME_corners_to_loops(), BME_make_mesh(), BME_ME(), BME_MF(), BME_model_begin(), BME_model_end(), BME_MV(), BME_Vert::bweight, BME_Edge::bweight, EditVert::bweight, EditEdge::bweight, CD_CALLOC, CD_MASK_BMESH, CD_MLOOPCOL, CD_MTEXPOLY, EditVert::co, BME_Edge::crease, EditEdge::crease, CustomData_bmesh_copy_data(), CustomData_bmesh_init_pool(), CustomData_copy(), CustomData_number_of_layers(), CustomData_to_bmeshpoly(), EditFace::data, EditVert::data, BME_Vert::data, BME_Edge::data, BME_Poly::data, EditEdge::data, EditEdge::e, credits_svn_gen::e, EditFace::e1, EditFace::e2, EditFace::e3, EditFace::e4, EditMesh::edata, EditMesh::edges, EditEdge::f, EditVert::f, EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::flag, BME_Vert::flag, BME_Edge::flag, BME_Poly::flag, EditEdge::h, EditVert::h, BME_Vert::h, EditFace::h, BME_Mesh::ldata, len(), EditFace::mat_nr, BME_Poly::mat_nr, ME_FACE_SEL, ME_HIDE, ME_SEAM, ME_SHARP, EditEdge::next, EditFace::next, EditVert::next, BME_Vert::no, EditVert::no, EditEdge::seam, SELECT, EditEdge::sharp, EditVert::tmp, EditEdge::tmp, EditVert::v, EditFace::v1, EditEdge::v1, EditFace::v2, EditEdge::v2, EditFace::v4, EditMesh::vdata, VECCOPY, and EditMesh::verts.
Referenced by bevel_menu().
static void BME_loops_to_corners | ( | BME_Mesh * | bm, |
CustomData * | facedata, | ||
void * | face_block, | ||
BME_Poly * | f, | ||
int | numCol, | ||
int | numTex | ||
) | [static] |
Definition at line 203 of file BME_conversions.c.
References MLoopCol::a, MCol::a, MLoopCol::b, MCol::b, CD_MCOL, CD_MLOOPCOL, CD_MLOOPUV, CD_MTEXPOLY, CD_MTFACE, CustomData_bmesh_get_n(), CustomData_em_get_n(), BME_Poly::data, BME_Loop::data, MTexPoly::flag, MTFace::flag, MLoopCol::g, MCol::g, i, BME_Mesh::ldata, BME_Poly::loopbase, MTFace::mode, MTexPoly::mode, BME_Loop::next, MCol::r, MLoopCol::r, MTFace::tile, MTexPoly::tile, MTFace::tpage, MTexPoly::tpage, MTexPoly::transp, MTFace::transp, MTFace::unwrap, MTexPoly::unwrap, MTFace::uv, and MLoopUV::uv.
Referenced by BME_bmesh_to_editmesh().