Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_mesh.h
| Show First 20 Lines • Show All 861 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Validates and corrects a Mesh. | * Validates and corrects a Mesh. | ||||
| * | * | ||||
| * \returns true if a change is made. | * \returns true if a change is made. | ||||
| */ | */ | ||||
| bool BKE_mesh_validate(struct Mesh *me, const bool do_verbose, const bool cddata_check_mask); | bool BKE_mesh_validate(struct Mesh *me, const bool do_verbose, const bool cddata_check_mask); | ||||
| /** | /** | ||||
| * Checks if a Mesh is valid without any modification. This is always verbose. | * Checks if a Mesh is valid without any modification. This is always verbose. | ||||
| * | * \returns True if the mesh is valid. | ||||
| * \see #DM_is_valid to call on derived meshes | |||||
| * | |||||
| * \returns is_valid. | |||||
| */ | */ | ||||
| bool BKE_mesh_is_valid(struct Mesh *me); | bool BKE_mesh_is_valid(struct Mesh *me); | ||||
| /** | /** | ||||
| * Check all material indices of polygons are valid, invalid ones are set to 0. | * Check all material indices of polygons are valid, invalid ones are set to 0. | ||||
| * \returns is_valid. | * \returns True if the material indices are valid. | ||||
| */ | */ | ||||
| bool BKE_mesh_validate_material_indices(struct Mesh *me); | bool BKE_mesh_validate_material_indices(struct Mesh *me); | ||||
| /** | /** | ||||
| * Validate the mesh, \a do_fixes requires \a mesh to be non-null. | * Validate the mesh, \a do_fixes requires \a mesh to be non-null. | ||||
| * | * | ||||
| * \return false if no changes needed to be made. | * \return false if no changes needed to be made. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||