Files
test2/source/blender/geometry/GEO_mix_geometries.hh
Jacques Lucke 70465387cd Cleanup: merge simulation input and output nodes and extract mix geometries function
The simulation input and output node are closely related and also share some code.
That's easier to handle if they are in the same file.

I also extracted out the code to mix geometries.

Pull Request: https://projects.blender.org/blender/blender/pulls/117713
2024-02-01 11:16:29 +01:00

20 lines
497 B
C++

/* SPDX-FileCopyrightText: 2024 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#include "BKE_geometry_set.hh"
namespace blender::geometry {
/**
* Mixes both geometries if possible (e.g. if corresponding meshes have the same number of
* vertices).
*
* If mixing is not possible, the geometry from the `a` input is returned.
*/
bke::GeometrySet mix_geometries(bke::GeometrySet a, const bke::GeometrySet &b, float factor);
} // namespace blender::geometry