Blender V4.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
9#pragma once
10
12#include "BLI_offset_indices.hh"
13#include "BLI_sys_types.h"
14
15struct Mesh;
16
17namespace blender::bke::subdiv {
18
19struct Subdiv;
20
33
35Mesh *subdiv_to_mesh(Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh);
36
43 Span<int2> coarse_edges,
44 GroupedSpan<int> vert_to_edge_map,
45 int coarse_edge_index,
46 bool is_simple,
47 float u);
48
49} // 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)
Mesh * subdiv_to_mesh(Subdiv *subdiv, const ToMeshSettings *settings, const Mesh *coarse_mesh)