Blender
V4.5
source
blender
blenkernel
intern
subdiv_converter.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
5
#pragma once
6
11
#include "
BKE_subdiv.hh
"
12
13
/* NOTE: Was initially used to get proper enumerator types, but this makes
14
* it tricky to compile without OpenSubdiv. */
15
/* #include "opensubdiv_converter_capi.hh" */
16
17
struct
Mesh
;
18
struct
OpenSubdiv_Converter
;
19
20
namespace
blender::bke::subdiv
{
21
22
struct
Settings;
23
24
void
converter_init_for_mesh
(
OpenSubdiv_Converter
*converter,
25
const
Settings *settings,
26
const
Mesh
*
mesh
);
27
28
/* NOTE: Frees converter data, but not converter itself. This means, that if
29
* converter was allocated on heap, it is up to the user to free that memory. */
30
void
converter_free
(
OpenSubdiv_Converter
*converter);
31
32
/* ============================ INTERNAL HELPERS ============================ */
33
34
/* TODO(sergey): Find a way to make it OpenSubdiv_VtxBoundaryInterpolation,
35
* without breaking compilation without OpenSubdiv. */
36
int
converter_vtx_boundary_interpolation_from_settings
(
const
Settings *settings);
37
38
/* TODO(sergey): Find a way to make it OpenSubdiv_FVarLinearInterpolation,
39
* without breaking compilation without OpenSubdiv. */
40
int
converter_fvar_linear_from_settings
(
const
Settings *settings);
41
42
}
// namespace blender::bke::subdiv
BKE_subdiv.hh
mesh
Mesh mesh
Definition
deg_eval_copy_on_write.cc:97
blender::bke::subdiv
Definition
BKE_multires.hh:23
blender::bke::subdiv::converter_init_for_mesh
void converter_init_for_mesh(OpenSubdiv_Converter *converter, const Settings *settings, const Mesh *mesh)
Definition
subdiv_converter_mesh.cc:382
blender::bke::subdiv::converter_fvar_linear_from_settings
int converter_fvar_linear_from_settings(const Settings *settings)
Definition
subdiv_converter.cc:36
blender::bke::subdiv::converter_vtx_boundary_interpolation_from_settings
int converter_vtx_boundary_interpolation_from_settings(const Settings *settings)
Definition
subdiv_converter.cc:22
blender::bke::subdiv::converter_free
void converter_free(OpenSubdiv_Converter *converter)
Definition
subdiv_converter.cc:15
Mesh
Definition
DNA_mesh_types.h:59
OpenSubdiv_Converter
Definition
opensubdiv_converter_capi.hh:11
Generated on Fri Apr 3 2026 06:33:18 for Blender by
doxygen
1.11.0