Blender V5.3
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
12#include "BLI_offset_indices.hh"
13
14namespace blender {
15
16struct Mesh;
17
18namespace bke::subdiv {
19
20struct Subdiv;
21
30 int resolution = -1;
32 bool use_optimal_display = false;
33};
34
36Mesh *subdiv_to_mesh(Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh);
37
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
56
57} // namespace bke::subdiv
58} // namespace blender
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)
void calculate_limit_positions(Mesh *mesh, MutableSpan< float3 > limit_positions)
Mesh * subdiv_to_mesh(Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh)
BMesh Iterators.
VecBase< float, 3 > float3