Files
test/source/blender/bmesh/tools/bmesh_boolean.h
Sergey Sharybin c1bc70b711 Cleanup: Add a copyright notice to files and use SPDX format
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/
2023-05-31 16:19:06 +02:00

50 lines
1.5 KiB
C

/* SPDX-FileCopyrightText: 2023 Blender Foundation
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
/** \file
* \ingroup bmesh
*/
#ifdef __cplusplus
extern "C" {
#endif
bool BM_mesh_boolean(BMesh *bm,
struct BMLoop *(*looptris)[3],
int looptris_tot,
int (*test_fn)(BMFace *f, void *user_data),
void *user_data,
int nshapes,
bool use_self,
bool keep_hidden,
bool hole_tolerant,
int boolean_mode);
/**
* Perform a Knife Intersection operation on the mesh `bm`.
* There are either one or two operands, the same as described above for #BM_mesh_boolean().
*
* \param use_separate_all: When true, each edge that is created from the intersection should
* be used to separate all its incident faces. TODO: implement that.
*
* TODO: need to ensure that "selected/non-selected" flag of original faces gets propagated
* to the intersection result faces.
*/
bool BM_mesh_boolean_knife(BMesh *bm,
struct BMLoop *(*looptris)[3],
int looptris_tot,
int (*test_fn)(BMFace *f, void *user_data),
void *user_data,
int nshapes,
bool use_self,
bool use_separate_all,
bool hole_tolerant,
bool keep_hidden);
#ifdef __cplusplus
}
#endif