OpenSubdiv
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1//
2// Copyright 2014 DreamWorks Animation LLC.
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://opensubdiv.org/license.
6//
7#ifndef OPENSUBDIV3_SDC_TYPES_H
8#define OPENSUBDIV3_SDC_TYPES_H
9
10#include "../version.h"
11
12namespace OpenSubdiv {
13namespace OPENSUBDIV_VERSION {
14
15namespace Sdc {
16
25
26
35
41
42 static SchemeType GetType(SchemeType schemeType) { return schemeType; }
43
45 static int GetRegularFaceSize(SchemeType schemeType);
46 static int GetRegularVertexValence(SchemeType schemeType);
47 static int GetLocalNeighborhoodSize(SchemeType schemeType);
48
49 static char const* GetName(SchemeType schemeType);
50};
51
52
53} // end namespace sdc
54
55} // end namespace OPENSUBDIV_VERSION
56using namespace OPENSUBDIV_VERSION;
57} // end namespace OpenSubdiv
58
59#endif /* OPENSUBDIV3_SDC_TYPES_H */
Split
Enumerated type for all face splitting schemes.
Definition types.h:30
@ SPLIT_TO_QUADS
Used by Catmark and Bilinear.
Definition types.h:31
@ SPLIT_HYBRID
Not currently used (potential future extension)
Definition types.h:33
SchemeType
Enumerated type for all subdivision schemes supported by OpenSubdiv.
Definition types.h:20
Traits associated with the types of all subdivision schemes – parameterized by the scheme type....
Definition types.h:40
static SchemeType GetType(SchemeType schemeType)
Definition types.h:42
static char const * GetName(SchemeType schemeType)
static int GetRegularFaceSize(SchemeType schemeType)
static int GetLocalNeighborhoodSize(SchemeType schemeType)
static Split GetTopologicalSplitType(SchemeType schemeType)
static int GetRegularVertexValence(SchemeType schemeType)