Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh_wrapper.cc
| /* SPDX-License-Identifier: GPL-2.0-or-later */ | /* SPDX-License-Identifier: GPL-2.0-or-later */ | ||||
| /** \file | /** \file | ||||
| * \ingroup bke | * \ingroup bke | ||||
| * | * | ||||
| * The primary purpose of this API is to avoid unnecessary mesh conversion for the final | * The primary purpose of this API is to avoid unnecessary mesh conversion for the final | ||||
| * output of a modified mesh. | * output of a modified mesh. | ||||
| * | * | ||||
| * This API handles the case when the modifier stack outputs a mesh which does not have | * This API handles the case when the modifier stack outputs a mesh which does not have | ||||
| * #Mesh data (#MPoly, #MLoop, #MEdge, etc). | * #Mesh data (#MPoly, corner verts, corner edges, #MEdge, etc). | ||||
| * Currently this is used so the resulting mesh can have #BMEditMesh data, | * Currently this is used so the resulting mesh can have #BMEditMesh data, | ||||
| * postponing the converting until it's needed or avoiding conversion entirely | * postponing the converting until it's needed or avoiding conversion entirely | ||||
| * which can be an expensive operation. | * which can be an expensive operation. | ||||
| * Once converted, the meshes type changes to #ME_WRAPPER_TYPE_MDATA, | * Once converted, the meshes type changes to #ME_WRAPPER_TYPE_MDATA, | ||||
| * although the edit mesh is not cleared. | * although the edit mesh is not cleared. | ||||
| * | * | ||||
| * This API exposes functions that abstract over the different kinds of internal data, | * This API exposes functions that abstract over the different kinds of internal data, | ||||
| * as well as supporting converting the mesh into regular mesh. | * as well as supporting converting the mesh into regular mesh. | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||