Blender
V3.3
source
blender
blenkernel
intern
subdiv_converter.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2018 Blender Foundation. All rights reserved. */
3
4
#pragma once
5
10
#include "
BKE_subdiv.h
"
11
12
/* NOTE: Was initially used to get proper enumerator types, but this makes
13
* it tricky to compile without OpenSubdiv. */
14
/* #include "opensubdiv_converter_capi.h" */
15
16
struct
Mesh
;
17
struct
OpenSubdiv_Converter
;
18
struct
SubdivSettings
;
19
20
void
BKE_subdiv_converter_init_for_mesh
(
struct
OpenSubdiv_Converter
*converter,
21
const
struct
SubdivSettings
*settings,
22
const
struct
Mesh
*
mesh
);
23
24
/* NOTE: Frees converter data, but not converter itself. This means, that if
25
* converter was allocated on heap, it is up to the user to free that memory. */
26
void
BKE_subdiv_converter_free
(
struct
OpenSubdiv_Converter
*converter);
27
28
/* ============================ INTERNAL HELPERS ============================ */
29
30
/* TODO(sergey): Find a way to make it OpenSubdiv_VtxBoundaryInterpolation,
31
* without breaking compilation without OpenSubdiv. */
32
int
BKE_subdiv_converter_vtx_boundary_interpolation_from_settings
(
const
SubdivSettings
*settings);
33
34
/* TODO(sergey): Find a way to make it OpenSubdiv_FVarLinearInterpolation,
35
* without breaking compilation without OpenSubdiv. */
36
int
BKE_subdiv_converter_fvar_linear_from_settings
(
const
SubdivSettings
*settings);
BKE_subdiv.h
mesh
Mesh mesh
Definition:
deg_eval_copy_on_write.cc:105
Mesh
Definition:
DNA_mesh_types.h:151
OpenSubdiv_Converter
Definition:
opensubdiv_converter_capi.h:30
SubdivSettings
Definition:
BKE_subdiv.h:42
BKE_subdiv_converter_fvar_linear_from_settings
int BKE_subdiv_converter_fvar_linear_from_settings(const SubdivSettings *settings)
Definition:
subdiv_converter.c:35
BKE_subdiv_converter_free
void BKE_subdiv_converter_free(struct OpenSubdiv_Converter *converter)
Definition:
subdiv_converter.c:14
BKE_subdiv_converter_vtx_boundary_interpolation_from_settings
int BKE_subdiv_converter_vtx_boundary_interpolation_from_settings(const SubdivSettings *settings)
Definition:
subdiv_converter.c:21
BKE_subdiv_converter_init_for_mesh
void BKE_subdiv_converter_init_for_mesh(struct OpenSubdiv_Converter *converter, const struct SubdivSettings *settings, const struct Mesh *mesh)
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1