Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_mesh.cc
| Show First 20 Lines • Show All 548 Lines • ▼ Show 20 Lines | if (m_settings.triangulate) { | ||||
| const int ngon_method = m_settings.ngon_method; | const int ngon_method = m_settings.ngon_method; | ||||
| struct BMeshCreateParams bmcp = {false}; | struct BMeshCreateParams bmcp = {false}; | ||||
| struct BMeshFromMeshParams bmfmp = {true, false, false, 0}; | struct BMeshFromMeshParams bmfmp = {true, false, false, 0}; | ||||
| BMesh *bm = BKE_mesh_to_bmesh_ex(mesh, &bmcp, &bmfmp); | BMesh *bm = BKE_mesh_to_bmesh_ex(mesh, &bmcp, &bmfmp); | ||||
| BM_mesh_triangulate(bm, quad_method, ngon_method, tag_only, NULL, NULL, NULL); | BM_mesh_triangulate(bm, quad_method, ngon_method, tag_only, NULL, NULL, NULL); | ||||
| Mesh *result = BKE_mesh_from_bmesh_for_eval_nomain(bm, 0); | Mesh *result = BKE_mesh_from_bmesh_for_eval_nomain(bm, NULL); | ||||
| BM_mesh_free(bm); | BM_mesh_free(bm); | ||||
| if (r_needsfree) { | if (r_needsfree) { | ||||
| BKE_id_free(NULL, mesh); | BKE_id_free(NULL, mesh); | ||||
| } | } | ||||
| mesh = result; | mesh = result; | ||||
| r_needsfree = true; | r_needsfree = true; | ||||
| ▲ Show 20 Lines • Show All 897 Lines • Show Last 20 Lines | |||||