Blender
V5.0
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
struct
Mesh
;
15
16
namespace
blender::bke::subdiv
{
17
18
struct
Subdiv
;
19
20
struct
ToMeshSettings
{
28
int
resolution
= -1;
30
bool
use_optimal_display
=
false
;
31
};
32
34
Mesh
*
subdiv_to_mesh
(
Subdiv
*
subdiv
,
const
ToMeshSettings
*settings,
const
Mesh
*coarse_mesh);
35
41
float3
mesh_interpolate_position_on_edge
(
Span<float3>
coarse_positions,
42
Span<int2>
coarse_edges,
43
GroupedSpan<int>
vert_to_edge_map,
44
int
coarse_edge_index,
45
bool
is_simple,
46
float
u);
47
53
void
calculate_limit_positions
(
Mesh
*
mesh
,
MutableSpan<float3>
limit_positions);
54
55
}
// namespace blender::bke::subdiv
BLI_math_vector_types.hh
BLI_offset_indices.hh
blender::MutableSpan
Definition
BLI_span.hh:443
blender::Span
Definition
BLI_span.hh:74
blender::bke::mesh
Definition
BKE_mesh.hh:28
blender::bke::subdiv
Definition
BKE_multires.hh:23
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:1026
blender::bke::subdiv::calculate_limit_positions
void calculate_limit_positions(Mesh *mesh, MutableSpan< float3 > limit_positions)
Definition
subdiv_mesh.cc:1227
blender::bke::subdiv::subdiv_to_mesh
Mesh * subdiv_to_mesh(Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh)
Definition
subdiv_mesh.cc:1129
blender::float3
VecBase< float, 3 > float3
Definition
BLI_math_vector_types.hh:619
Mesh
Definition
DNA_mesh_types.h:58
blender::bke::subdiv::Subdiv
Definition
BKE_subdiv.hh:175
blender::bke::subdiv::ToMeshSettings
Definition
BKE_subdiv_mesh.hh:20
blender::bke::subdiv::ToMeshSettings::use_optimal_display
bool use_optimal_display
Definition
BKE_subdiv_mesh.hh:30
blender::bke::subdiv::ToMeshSettings::resolution
int resolution
Definition
BKE_subdiv_mesh.hh:28
blender::offset_indices::GroupedSpan
Definition
BLI_offset_indices.hh:120
Generated on
for Blender by
doxygen
1.16.1