Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-10-31 19:46:22 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-10-31 19:47:40 +0300
commita2a8e7121081404e35d9aa4769b17ebf23f83f11 (patch)
treedcb80b6466cba21f905740abadd6383aa07f0a16 /source/blender/blenkernel/BKE_subdiv.h
parent9c328502bb37ab082e4205be4b61fe9d4a43aa1b (diff)
OpenSubdiv: API, expose vertex boundary interpolation option
Only affects internal API, bout could be exposed as an option for the compatibility reasons with other software. Is a part of some ongoing development of multires, but might or might not be used.
Diffstat (limited to 'source/blender/blenkernel/BKE_subdiv.h')
-rw-r--r--source/blender/blenkernel/BKE_subdiv.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_subdiv.h b/source/blender/blenkernel/BKE_subdiv.h
index 09fcce369d4..06d57062b59 100644
--- a/source/blender/blenkernel/BKE_subdiv.h
+++ b/source/blender/blenkernel/BKE_subdiv.h
@@ -43,7 +43,16 @@ struct OpenSubdiv_TopologyRefiner;
struct Subdiv;
struct SubdivToMeshSettings;
-typedef enum {
+typedef enum eSubdivVtxBoundaryInterpolation {
+ /* Do not interpolate boundaries. */
+ SUBDIV_VTX_BOUNDARY_NONE,
+ /* Sharpen edges. */
+ SUBDIV_VTX_BOUNDARY_EDGE_ONLY,
+ /* sharpen edges and corners, */
+ SUBDIV_VTX_BOUNDARY_EDGE_AND_CORNER,
+} eSubdivVtxBoundaryInterpolation;
+
+typedef enum eSubdivFVarLinearInterpolation {
SUBDIV_FVAR_LINEAR_INTERPOLATION_NONE,
SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY,
SUBDIV_FVAR_LINEAR_INTERPOLATION_CORNERS_AND_JUNCTIONS,
@@ -56,6 +65,7 @@ typedef struct SubdivSettings {
bool is_simple;
bool is_adaptive;
int level;
+ eSubdivVtxBoundaryInterpolation vtx_boundary_interpolation;
eSubdivFVarLinearInterpolation fvar_linear_interpolation;
} SubdivSettings;