Blender
V5.3
source
blender
geometry
GEO_mesh_boolean.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2019 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_array.hh
"
12
#include "
BLI_math_matrix_types.hh
"
13
#include "
BLI_span.hh
"
14
#include "
BLI_vector.hh
"
15
16
namespace
blender
{
17
18
struct
Mesh
;
19
20
namespace
geometry::boolean
{
21
23
enum class
Solver
{
28
MeshArr
= 0,
30
Float
= 1,
32
Manifold
= 2,
33
};
34
35
enum class
Operation
{
36
Intersect
= 0,
37
Union
= 1,
38
Difference = 2,
39
};
40
41
enum class
BooleanErrorType
{
42
NoError
= 0,
43
NonManifold
= 1,
44
ResultTooBig
= 2,
45
SolverNotAvailable
= 3,
46
UnknownError
= 4,
47
};
48
49
struct
BooleanError
{
50
BooleanErrorType
type
=
BooleanErrorType::NoError
;
51
Vector<int>
non_manifold_mesh_indices
;
52
};
53
60
struct
BooleanOpParameters
{
61
Operation
boolean_mode
;
63
bool
no_self_intersections
=
true
;
68
bool
no_nested_components
=
true
;
70
bool
watertight
=
true
;
71
};
72
100
Mesh
*
mesh_boolean
(
Span<const Mesh *>
meshes,
101
Span<float4x4>
transforms,
102
Span
<
Array<short>
> material_remaps,
103
BooleanOpParameters
op_params,
104
Solver
solver,
105
Vector<int>
*r_intersecting_edges,
106
BooleanError
*r_error);
107
108
}
// namespace geometry::boolean
109
}
// namespace blender
BLI_array.hh
BLI_math_matrix_types.hh
BLI_span.hh
BLI_vector.hh
Intersect
DBVT_INLINE bool Intersect(const btDbvtAabbMm &a, const btDbvtAabbMm &b)
Definition
btDbvt.h:621
blender::Array
Definition
BLI_array.hh:50
blender::Span
Definition
BLI_span.hh:74
blender::Vector
Definition
BLI_vector.hh:76
Float
@ Float
Definition
draco_bridge/intern/common.h:32
blender::geometry::boolean
Definition
GEO_mesh_boolean.hh:20
blender::geometry::boolean::Solver
Solver
Definition
GEO_mesh_boolean.hh:23
blender::geometry::boolean::Solver::Manifold
@ Manifold
Definition
GEO_mesh_boolean.hh:32
blender::geometry::boolean::Solver::MeshArr
@ MeshArr
Definition
GEO_mesh_boolean.hh:28
blender::geometry::boolean::Operation
Operation
Definition
GEO_mesh_boolean.hh:35
blender::geometry::boolean::BooleanErrorType
BooleanErrorType
Definition
GEO_mesh_boolean.hh:41
blender::geometry::boolean::BooleanErrorType::NoError
@ NoError
Definition
GEO_mesh_boolean.hh:42
blender::geometry::boolean::BooleanErrorType::NonManifold
@ NonManifold
Definition
GEO_mesh_boolean.hh:43
blender::geometry::boolean::BooleanErrorType::UnknownError
@ UnknownError
Definition
GEO_mesh_boolean.hh:46
blender::geometry::boolean::BooleanErrorType::ResultTooBig
@ ResultTooBig
Definition
GEO_mesh_boolean.hh:44
blender::geometry::boolean::BooleanErrorType::SolverNotAvailable
@ SolverNotAvailable
Definition
GEO_mesh_boolean.hh:45
blender::geometry::boolean::mesh_boolean
Mesh * mesh_boolean(Span< const Mesh * > meshes, Span< float4x4 > transforms, Span< Array< short > > material_remaps, BooleanOpParameters op_params, Solver solver, Vector< int > *r_intersecting_edges, BooleanError *r_error)
Definition
geometry/intern/mesh_boolean.cc:1230
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
lexit::Union
@ Union
Definition
types.hh:109
blender::Mesh
Definition
DNA_mesh_types.h:148
blender::geometry::boolean::BooleanError
Definition
GEO_mesh_boolean.hh:49
blender::geometry::boolean::BooleanError::non_manifold_mesh_indices
Vector< int > non_manifold_mesh_indices
Definition
GEO_mesh_boolean.hh:51
blender::geometry::boolean::BooleanError::type
BooleanErrorType type
Definition
GEO_mesh_boolean.hh:50
blender::geometry::boolean::BooleanOpParameters
Definition
GEO_mesh_boolean.hh:60
blender::geometry::boolean::BooleanOpParameters::watertight
bool watertight
Definition
GEO_mesh_boolean.hh:70
blender::geometry::boolean::BooleanOpParameters::no_self_intersections
bool no_self_intersections
Definition
GEO_mesh_boolean.hh:63
blender::geometry::boolean::BooleanOpParameters::boolean_mode
Operation boolean_mode
Definition
GEO_mesh_boolean.hh:61
blender::geometry::boolean::BooleanOpParameters::no_nested_components
bool no_nested_components
Definition
GEO_mesh_boolean.hh:68
Generated on
for Blender by
doxygen
1.18.0