Blender V4.3
subdiv_converter.cc
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#include "subdiv_converter.hh"
10
12
13namespace blender::bke::subdiv {
14
16{
17 if (converter->freeUserData) {
18 converter->freeUserData(converter);
19 }
20}
21
23{
24 switch (settings->vtx_boundary_interpolation) {
31 }
32 BLI_assert_msg(0, "Unknown vtx boundary interpolation");
34}
35
56
57} // namespace blender::bke::subdiv
#define BLI_assert_msg(a, msg)
Definition BLI_assert.h:57
int converter_fvar_linear_from_settings(const Settings *settings)
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS
Definition BKE_subdiv.hh:36
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_BOUNDARIES
Definition BKE_subdiv.hh:38
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE
Definition BKE_subdiv.hh:34
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY
Definition BKE_subdiv.hh:35
@ SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_JUNCTIONS_AND_CONCAVE
Definition BKE_subdiv.hh:37
int converter_vtx_boundary_interpolation_from_settings(const Settings *settings)
void converter_free(OpenSubdiv_Converter *converter)
@ OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY
@ OSD_FVAR_LINEAR_INTERPOLATION_ALL
@ OSD_FVAR_LINEAR_INTERPOLATION_NONE
@ OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS1
@ OSD_FVAR_LINEAR_INTERPOLATION_BOUNDARIES
@ OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS2
@ OSD_VTX_BOUNDARY_NONE
@ OSD_VTX_BOUNDARY_EDGE_AND_CORNER
@ OSD_VTX_BOUNDARY_EDGE_ONLY
void(* freeUserData)(const OpenSubdiv_Converter *converter)