OpenSubdiv
Loading...
Searching...
No Matches
ptexIndices.h
Go to the documentation of this file.
1
//
2
// Copyright 2015 Pixar
3
//
4
// Licensed under the terms set forth in the LICENSE.txt file available at
5
// https://opensubdiv.org/license.
6
//
7
#ifndef OPENSUBDIV3_FAR_PTEX_INDICES_H
8
#define OPENSUBDIV3_FAR_PTEX_INDICES_H
9
10
#include "../version.h"
11
12
#include "
../far/topologyRefiner.h
"
13
#include "
../far/types.h
"
14
15
#include <vector>
16
17
namespace
OpenSubdiv
{
18
namespace
OPENSUBDIV_VERSION
{
19
20
namespace
Far
{
21
29
class
PtexIndices
{
30
31
public
:
32
34
PtexIndices
(
TopologyRefiner
const
&refiner);
35
37
~PtexIndices
();
38
40
43
46
int
GetNumFaces
()
const
;
47
50
int
GetFaceId
(
Index
f)
const
;
51
66
void
GetAdjacency
(
67
TopologyRefiner
const
&refiner,
68
int
face,
int
quadrant,
69
int
adjFaces[4],
int
adjEdges[4])
const
;
70
72
73
private
:
74
75
void
initializePtexIndices(
TopologyRefiner
const
&refiner);
76
77
private
:
78
79
std::vector<Index> _ptexIndices;
80
};
81
82
83
}
// end namespace Far
84
85
}
// end namespace OPENSUBDIV_VERSION
86
using namespace
OPENSUBDIV_VERSION
;
87
}
// end namespace OpenSubdiv
88
89
#endif
/* OPENSUBDIV3_FAR_PTEX_INDICES_H */
topologyRefiner.h
OpenSubdiv
Definition
limits.h:15
OpenSubdiv::OPENSUBDIV_VERSION
Definition
limits.h:16
OpenSubdiv::OPENSUBDIV_VERSION::Far
Definition
refinerSurfaceFactory.h:19
OpenSubdiv::OPENSUBDIV_VERSION::Far::Index
Vtr::Index Index
Definition
types.h:24
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::GetFaceId
int GetFaceId(Index f) const
Returns the ptex face index given a coarse face 'f' or -1.
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::PtexIndices
PtexIndices(TopologyRefiner const &refiner)
Constructor.
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::GetAdjacency
void GetAdjacency(TopologyRefiner const &refiner, int face, int quadrant, int adjFaces[4], int adjEdges[4]) const
Returns ptex face adjacency information for a given coarse face.
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::GetNumFaces
int GetNumFaces() const
Returns the number of ptex faces in the mesh.
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::~PtexIndices
~PtexIndices()
Destructor.
OpenSubdiv::OPENSUBDIV_VERSION::Far::TopologyRefiner
Stores topology data for a specified set of refinement options.
Definition
topologyRefiner.h:34
types.h
opensubdiv
far
ptexIndices.h
Generated on
for OpenSubdiv by
1.15.0