Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/subdiv.c
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | case SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_AND_JUNCTIONS: | ||||
| return SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS; | return SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS; | ||||
| case SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE: | case SUBSURF_UV_SMOOTH_PRESERVE_CORNERS_JUNCTIONS_AND_CONCAVE: | ||||
| return SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_JUNCTIONS_AND_CONCAVE; | return SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_JUNCTIONS_AND_CONCAVE; | ||||
| case SUBSURF_UV_SMOOTH_PRESERVE_BOUNDARIES: | case SUBSURF_UV_SMOOTH_PRESERVE_BOUNDARIES: | ||||
| return SUBDIV_FVAR_LINEAR_INTERPOLATION_BOUNDARIES; | return SUBDIV_FVAR_LINEAR_INTERPOLATION_BOUNDARIES; | ||||
| case SUBSURF_UV_SMOOTH_ALL: | case SUBSURF_UV_SMOOTH_ALL: | ||||
| return SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE; | return SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE; | ||||
| } | } | ||||
| BLI_assert(!"Unknown uv smooth flag"); | BLI_assert_msg(0, "Unknown uv smooth flag"); | ||||
| return SUBDIV_FVAR_LINEAR_INTERPOLATION_ALL; | return SUBDIV_FVAR_LINEAR_INTERPOLATION_ALL; | ||||
| } | } | ||||
| eSubdivVtxBoundaryInterpolation BKE_subdiv_vtx_boundary_interpolation_from_subsurf( | eSubdivVtxBoundaryInterpolation BKE_subdiv_vtx_boundary_interpolation_from_subsurf( | ||||
| int boundary_smooth) | int boundary_smooth) | ||||
| { | { | ||||
| switch (boundary_smooth) { | switch (boundary_smooth) { | ||||
| case SUBSURF_BOUNDARY_SMOOTH_PRESERVE_CORNERS: | case SUBSURF_BOUNDARY_SMOOTH_PRESERVE_CORNERS: | ||||
| return SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER; | return SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER; | ||||
| case SUBSURF_BOUNDARY_SMOOTH_ALL: | case SUBSURF_BOUNDARY_SMOOTH_ALL: | ||||
| return SUBDIV_VTX_BOUNDARY_EDGE_ONLY; | return SUBDIV_VTX_BOUNDARY_EDGE_ONLY; | ||||
| } | } | ||||
| BLI_assert(!"Unknown boundary smooth flag"); | BLI_assert_msg(0, "Unknown boundary smooth flag"); | ||||
| return SUBDIV_VTX_BOUNDARY_EDGE_ONLY; | return SUBDIV_VTX_BOUNDARY_EDGE_ONLY; | ||||
| } | } | ||||
| /* ================================ SETTINGS ================================ */ | /* ================================ SETTINGS ================================ */ | ||||
| bool BKE_subdiv_settings_equal(const SubdivSettings *settings_a, const SubdivSettings *settings_b) | bool BKE_subdiv_settings_equal(const SubdivSettings *settings_a, const SubdivSettings *settings_b) | ||||
| { | { | ||||
| return (settings_a->is_simple == settings_b->is_simple && | return (settings_a->is_simple == settings_b->is_simple && | ||||
| ▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines | |||||