Blender
V5.3
source
blender
blenkernel
BKE_subdiv_mesh.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2018 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9
#pragma once
10
11
#include "
BLI_math_vector_types.hh
"
12
#include "
BLI_offset_indices.hh
"
13
14
namespace
blender
{
15
16
struct
Mesh
;
17
18
namespace
bke::subdiv
{
19
20
struct
Subdiv
;
21
22
struct
ToMeshSettings
{
30
int
resolution
= -1;
32
bool
use_optimal_display
=
false
;
33
};
34
36
Mesh
*
subdiv_to_mesh
(
Subdiv
*
subdiv
,
const
ToMeshSettings
*settings,
const
Mesh
*coarse_mesh);
37
43
float3
mesh_interpolate_position_on_edge
(
Span<float3>
coarse_positions,
44
Span<int2>
coarse_edges,
45
GroupedSpan<int>
vert_to_edge_map,
46
int
coarse_edge_index,
47
bool
is_simple,
48
float
u);
49
55
void
calculate_limit_positions
(
Mesh
*
mesh
,
MutableSpan<float3>
limit_positions);
56
57
}
// namespace bke::subdiv
58
}
// namespace blender
BLI_math_vector_types.hh
BLI_offset_indices.hh
blender::MutableSpan
Definition
BLI_span.hh:447
blender::Span
Definition
BLI_span.hh:74
blender::bke::mesh
Definition
BKE_mesh.hh:28
blender::bke::subdiv
Definition
BKE_multires.hh:26
blender::bke::subdiv::mesh_interpolate_position_on_edge
float3 mesh_interpolate_position_on_edge(Span< float3 > coarse_positions, Span< int2 > coarse_edges, GroupedSpan< int > vert_to_edge_map, int coarse_edge_index, bool is_simple, float u)
Definition
subdiv_mesh.cc:1354
blender::bke::subdiv::calculate_limit_positions
void calculate_limit_positions(Mesh *mesh, MutableSpan< float3 > limit_positions)
Definition
subdiv_mesh.cc:1567
blender::bke::subdiv::subdiv_to_mesh
Mesh * subdiv_to_mesh(Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh)
Definition
subdiv_mesh.cc:1458
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::float3
VecBase< float, 3 > float3
Definition
BLI_math_vector_types.hh:799
subdiv
Definition
subdiv_attrib_interp.bsl.hh:13
blender::Mesh
Definition
DNA_mesh_types.h:148
blender::bke::subdiv::Subdiv
Definition
BKE_subdiv.hh:181
blender::bke::subdiv::ToMeshSettings
Definition
BKE_subdiv_mesh.hh:22
blender::bke::subdiv::ToMeshSettings::use_optimal_display
bool use_optimal_display
Definition
BKE_subdiv_mesh.hh:32
blender::bke::subdiv::ToMeshSettings::resolution
int resolution
Definition
BKE_subdiv_mesh.hh:30
blender::offset_indices::GroupedSpan
Definition
BLI_offset_indices.hh:123
Generated on
for Blender by
doxygen
1.18.0