A lot of files were missing copyright field in the header and
the Blender Foundation contributed to them in a sense of bug
fixing and general maintenance.
This change makes it explicit that those files are at least
partially copyrighted by the Blender Foundation.
Note that this does not make it so the Blender Foundation is
the only holder of the copyright in those files, and developers
who do not have a signed contract with the foundation still
hold the copyright as well.
Another aspect of this change is using SPDX format for the
header. We already used it for the license specification,
and now we state it for the copyright as well, following the
FAQ:
https://reuse.software/faq/
40 lines
1.5 KiB
C++
40 lines
1.5 KiB
C++
/* SPDX-FileCopyrightText: 2019 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
/** \file
|
|
* \ingroup bke
|
|
*/
|
|
|
|
#include "BLI_array.hh"
|
|
#include "BLI_math_matrix_types.hh"
|
|
#include "BLI_mesh_boolean.hh"
|
|
#include "BLI_span.hh"
|
|
|
|
struct Mesh;
|
|
|
|
namespace blender::meshintersect {
|
|
|
|
/**
|
|
* Do a mesh boolean operation directly on meshes (without going back and forth from BMesh).
|
|
* \param transforms: An array of pointers to transform matrices used for each mesh's positions.
|
|
* It is allowed for the pointers to be null, meaning the transformation is the identity.
|
|
* \param material_remaps: An array of maps from material slot numbers in the corresponding mesh
|
|
* to the material slot in the first mesh. It is OK for material_remaps or any of its constituent
|
|
* arrays to be empty. A -1 value means that the original index should be used with no mapping.
|
|
* \param r_intersecting_edges: Array to store indices of edges on the resulting mesh in. These
|
|
* 'new' edges are the result of the intersections.
|
|
*/
|
|
Mesh *direct_mesh_boolean(Span<const Mesh *> meshes,
|
|
Span<const float4x4 *> transforms,
|
|
const float4x4 &target_transform,
|
|
Span<Array<short>> material_remaps,
|
|
bool use_self,
|
|
bool hole_tolerant,
|
|
int boolean_mode,
|
|
Vector<int> *r_intersecting_edges);
|
|
|
|
} // namespace blender::meshintersect
|