Blender V4.5
BKE_geometry_compare.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BKE_curves.hh"
8#include "BKE_mesh_types.hh"
9
13
15
16enum class GeoMismatch : int8_t;
17
21const char *mismatch_to_string(const GeoMismatch &mismatch);
22
37std::optional<GeoMismatch> compare_meshes(const Mesh &mesh1, const Mesh &mesh2, float threshold);
38
45std::optional<GeoMismatch> compare_curves(const CurvesGeometry &curves1,
46 const CurvesGeometry &curves2,
47 float threshold);
48
49} // namespace blender::bke::compare_geometry
Low-level operations for curves.
std::optional< GeoMismatch > compare_meshes(const Mesh &mesh1, const Mesh &mesh2, float threshold)
Checks if the two meshes are different, returning the type of mismatch if any. Changes in index order...
std::optional< GeoMismatch > compare_curves(const CurvesGeometry &curves1, const CurvesGeometry &curves2, float threshold)
Checks if the two curves geometries are different, returning the type of mismatch if any....
const char * mismatch_to_string(const GeoMismatch &mismatch)