Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/editderivedmesh.c
| Show First 20 Lines • Show All 520 Lines • ▼ Show 20 Lines | |||||
| float (*BKE_editmesh_vertexCos_get(struct Depsgraph *depsgraph, BMEditMesh *em, Scene *scene, int *r_numVerts))[3] | float (*BKE_editmesh_vertexCos_get(struct Depsgraph *depsgraph, BMEditMesh *em, Scene *scene, int *r_numVerts))[3] | ||||
| { | { | ||||
| Mesh *cage; | Mesh *cage; | ||||
| BLI_bitmap *visit_bitmap; | BLI_bitmap *visit_bitmap; | ||||
| struct CageUserData data; | struct CageUserData data; | ||||
| float (*cos_cage)[3]; | float (*cos_cage)[3]; | ||||
| cage = editbmesh_get_eval_cage(depsgraph, scene, em->ob, em, CD_MASK_BAREMESH); | cage = editbmesh_get_eval_cage(depsgraph, scene, em->ob, em, &CD_MASK_BAREMESH); | ||||
| cos_cage = MEM_callocN(sizeof(*cos_cage) * em->bm->totvert, "bmbvh cos_cage"); | cos_cage = MEM_callocN(sizeof(*cos_cage) * em->bm->totvert, "bmbvh cos_cage"); | ||||
| /* when initializing cage verts, we only want the first cage coordinate for each vertex, | /* when initializing cage verts, we only want the first cage coordinate for each vertex, | ||||
| * so that e.g. mirror or array use original vertex coordinates and not mirrored or duplicate */ | * so that e.g. mirror or array use original vertex coordinates and not mirrored or duplicate */ | ||||
| visit_bitmap = BLI_BITMAP_NEW(em->bm->totvert, __func__); | visit_bitmap = BLI_BITMAP_NEW(em->bm->totvert, __func__); | ||||
| data.totvert = em->bm->totvert; | data.totvert = em->bm->totvert; | ||||
| data.cos_cage = cos_cage; | data.cos_cage = cos_cage; | ||||
| Show All 12 Lines | |||||