Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_DerivedMesh.h
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| * and freed on the next ->release(). consider using getVert/Edge/Face if | * and freed on the next ->release(). consider using getVert/Edge/Face if | ||||
| * you are only interested in a few verts/edges/faces. | * you are only interested in a few verts/edges/faces. | ||||
| */ | */ | ||||
| /** | /** | ||||
| * \warning The real return type is `float(*)[3]`. | * \warning The real return type is `float(*)[3]`. | ||||
| */ | */ | ||||
| float *(*getVertArray)(DerivedMesh *dm); | float *(*getVertArray)(DerivedMesh *dm); | ||||
| struct MEdge *(*getEdgeArray)(DerivedMesh *dm); | struct MEdge *(*getEdgeArray)(DerivedMesh *dm); | ||||
| struct MLoop *(*getLoopArray)(DerivedMesh *dm); | int *(*getCornerVertArray)(DerivedMesh *dm); | ||||
| int *(*getCornerEdgeArray)(DerivedMesh *dm); | |||||
| struct MPoly *(*getPolyArray)(DerivedMesh *dm); | struct MPoly *(*getPolyArray)(DerivedMesh *dm); | ||||
| /** Copy all verts/edges/faces from the derived mesh into | /** Copy all verts/edges/faces from the derived mesh into | ||||
| * *{vert/edge/face}_r (must point to a buffer large enough) | * *{vert/edge/face}_r (must point to a buffer large enough) | ||||
| */ | */ | ||||
| void (*copyVertArray)(DerivedMesh *dm, float (*r_positions)[3]); | void (*copyVertArray)(DerivedMesh *dm, float (*r_positions)[3]); | ||||
| void (*copyEdgeArray)(DerivedMesh *dm, struct MEdge *r_edge); | void (*copyEdgeArray)(DerivedMesh *dm, struct MEdge *r_edge); | ||||
| void (*copyLoopArray)(DerivedMesh *dm, struct MLoop *r_loop); | void (*copyCornerVertArray)(DerivedMesh *dm, int *r_corner_verts); | ||||
| void (*copyCornerEdgeArray)(DerivedMesh *dm, int *r_corner_edges); | |||||
| void (*copyPolyArray)(DerivedMesh *dm, struct MPoly *r_poly); | void (*copyPolyArray)(DerivedMesh *dm, struct MPoly *r_poly); | ||||
| /** Return a pointer to the entire array of vert/edge/face custom data | /** Return a pointer to the entire array of vert/edge/face custom data | ||||
| * from the derived mesh (this gives a pointer to the actual data, not | * from the derived mesh (this gives a pointer to the actual data, not | ||||
| * a copy) | * a copy) | ||||
| */ | */ | ||||
| void *(*getVertDataArray)(DerivedMesh *dm, int type); | void *(*getVertDataArray)(DerivedMesh *dm, int type); | ||||
| void *(*getEdgeDataArray)(DerivedMesh *dm, int type); | void *(*getEdgeDataArray)(DerivedMesh *dm, int type); | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||