Blender V5.0
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
14struct Mesh;
15
16namespace blender::bke::subdiv {
17
18struct Subdiv;
19
28 int resolution = -1;
30 bool use_optimal_display = false;
31};
32
34Mesh *subdiv_to_mesh(Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh);
35
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
54
55} // namespace blender::bke::subdiv
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)
VecBase< float, 3 > float3