Blender V5.3
mesh_boolean_intern.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_mesh_types.h"
12
13#include "BKE_attribute.hh"
14#include "BKE_geometry_set.hh"
15
16#include "BLI_span.hh"
17
18namespace blender {
19
20struct Mesh;
21
22namespace geometry::boolean {
23
43
50 bke::AttributeAccessor input_attrs,
51 Mesh *output_mesh,
52 const Mesh *input_mesh,
53 Span<int> out_to_in_corner_map,
54 Span<int> out_to_in_face_map);
55
58
65 Span<Array<short>> material_remaps,
66 Span<const Mesh *> meshes,
67 const MeshOffsets &mesh_offsets,
69
71
76int mesh_id_for_face(int face_id, const MeshOffsets &mesh_offsets);
77
82IndexRange vertex_range_for_face(int face_id, const MeshOffsets &mesh_offsets);
83
84} // namespace geometry::boolean
85} // namespace blender
NonCopyable(const NonCopyable &other)=delete
NonMovable(NonMovable &&other)=delete
void copy_attribute_using_map(GSpan src, Span< int > out_to_in_map, GMutableSpan dst)
int mesh_id_for_face(int face_id, const MeshOffsets &mesh_offsets)
void interpolate_corner_attributes(bke::MutableAttributeAccessor output_attrs, bke::AttributeAccessor input_attrs, Mesh *output_mesh, const Mesh *input_mesh, Span< int > out_to_in_corner_map, Span< int > out_to_in_face_map)
IndexRange vertex_range_for_face(int face_id, const MeshOffsets &mesh_offsets)
void set_material_from_map(Span< int > out_to_in_map, Span< Array< short > > material_remaps, Span< const Mesh * > meshes, const MeshOffsets &mesh_offsets, MutableSpan< int > dst)
bke::GeometrySet join_meshes_with_transforms(Span< const Mesh * > meshes, Span< float4x4 > transforms)
BMesh Iterators.
MeshOffsets(Span< const Mesh * > meshes)