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:
Diffstat (limited to 'intern/opensubdiv/opensubdiv_converter_capi.h')
-rw-r--r--intern/opensubdiv/opensubdiv_converter_capi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_converter_capi.h b/intern/opensubdiv/opensubdiv_converter_capi.h
index a939f1117e0..58a231deb30 100644
--- a/intern/opensubdiv/opensubdiv_converter_capi.h
+++ b/intern/opensubdiv/opensubdiv_converter_capi.h
@@ -19,6 +19,8 @@
#ifndef OPENSUBDIV_CONVERTER_CAPI_H_
#define OPENSUBDIV_CONVERTER_CAPI_H_
+#include <stdint.h> // for bool
+
#include "opensubdiv_capi_type.h"
#ifdef __cplusplus
@@ -34,6 +36,7 @@ typedef struct OpenSubdiv_Converter {
//////////////////////////////////////////////////////////////////////////////
// Global geometry counters.
+
// Number of faces/edges/vertices in the base mesh.
int (*getNumFaces)(const struct OpenSubdiv_Converter* converter);
int (*getNumEdges)(const struct OpenSubdiv_Converter* converter);
@@ -92,6 +95,11 @@ typedef struct OpenSubdiv_Converter {
const int vertex_index,
int* vertex_faces);
+ // Check whether vertex is to be marked as an infinite sharp.
+ // This is a way to make sharp vertices which are adjacent to a loose edges.
+ bool (*isInfiniteSharpVertex)(const struct OpenSubdiv_Converter* converter,
+ const int vertex_index);
+
//////////////////////////////////////////////////////////////////////////////
// Face-varying data.