OpenSubdiv: opensubdiv/bfr/limits.h Source File

| 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
15 namespace OpenSubdiv {
16 namespace OPENSUBDIV_VERSION {
17
18 namespace Bfr {
19
23 struct 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 */
OpenSubdiv
Definition limits.h:15
OpenSubdiv::OPENSUBDIV_VERSION
Definition limits.h:16
OpenSubdiv::OPENSUBDIV_VERSION::Bfr
Definition limits.h:18
OpenSubdiv::OPENSUBDIV_VERSION::Bfr::Limits
Simple struct with limits related to topology.
Definition limits.h:23
OpenSubdiv::OPENSUBDIV_VERSION::Bfr::Limits::MaxFaceSize
static int MaxFaceSize()
Returns the maximum allowable size for a face (number of vertices).
Definition limits.h:29
OpenSubdiv::OPENSUBDIV_VERSION::Bfr::Limits::MaxValence
static int MaxValence()
Returns the maximum allowable valence for a vertex.
Definition limits.h:25
types.h