Blender V5.0
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
10#include "DNA_lattice_types.h"
11
15
17
18enum class GeoMismatch : int8_t;
19
23const char *mismatch_to_string(const GeoMismatch &mismatch);
24
39std::optional<GeoMismatch> compare_meshes(const Mesh &mesh1, const Mesh &mesh2, float threshold);
40
47std::optional<GeoMismatch> compare_curves(const CurvesGeometry &curves1,
48 const CurvesGeometry &curves2,
49 float threshold);
50
56std::optional<GeoMismatch> compare_lattices(const Lattice &lattice1,
57 const Lattice &lattice2,
58 float threshold);
59
60} // 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)
std::optional< GeoMismatch > compare_lattices(const Lattice &lattice1, const Lattice &lattice2, float threshold)
Checks if the two lattices are different, returning the type of mismatch if any.