OpenSubdiv
Loading...
Searching...
No Matches
limits.h
Go to the documentation of this file.
1//
2// Copyright 2021 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://opensubdiv.org/license.
6//
7
8#ifndef OPENSUBDIV3_BFR_LIMITS_H
9#define OPENSUBDIV3_BFR_LIMITS_H
10
11#include "../version.h"
12
13#include "../far/types.h"
14
15namespace OpenSubdiv {
16namespace OPENSUBDIV_VERSION {
17
18namespace Bfr {
19
23struct Limits {
25 static int MaxValence() { return Far::VALENCE_LIMIT; }
26
29 static int MaxFaceSize() { return Far::VALENCE_LIMIT; }
30};
31
32} // end namespace Bfr
33
34} // end namespace OPENSUBDIV_VERSION
35using namespace OPENSUBDIV_VERSION;
36} // end namespace OpenSubdiv
37
38#endif /* OPENSUBDIV3_BFR_LIMITS_H */
Simple struct with limits related to topology.
Definition limits.h:23
static int MaxFaceSize()
Returns the maximum allowable size for a face (number of vertices)
Definition limits.h:29
static int MaxValence()
Returns the maximum allowable valence for a vertex.
Definition limits.h:25