My Project
ptexIndices.h
Go to the documentation of this file.
1
//
2
// Copyright 2015 Pixar
3
//
4
// Licensed under the Apache License, Version 2.0 (the "Apache License")
5
// with the following modification; you may not use this file except in
6
// compliance with the Apache License and the following modification to it:
7
// Section 6. Trademarks. is deleted and replaced with:
8
//
9
// 6. Trademarks. This License does not grant permission to use the trade
10
// names, trademarks, service marks, or product names of the Licensor
11
// and its affiliates, except as required to comply with Section 4(c) of
12
// the License and to reproduce the content of the NOTICE file.
13
//
14
// You may obtain a copy of the Apache License at
15
//
16
// http://www.apache.org/licenses/LICENSE-2.0
17
//
18
// Unless required by applicable law or agreed to in writing, software
19
// distributed under the Apache License with the above modification is
20
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21
// KIND, either express or implied. See the Apache License for the specific
22
// language governing permissions and limitations under the Apache License.
23
//
24
#ifndef OPENSUBDIV3_FAR_PTEX_INDICES_H
25
#define OPENSUBDIV3_FAR_PTEX_INDICES_H
26
27
#include "../version.h"
28
29
#include "../far/topologyRefiner.h"
30
#include "../far/types.h"
31
32
#include <vector>
33
34
namespace
OpenSubdiv
{
35
namespace
OPENSUBDIV_VERSION {
36
37
namespace
Far {
38
46
class
PtexIndices
{
47
48
public
:
49
51
PtexIndices
(
TopologyRefiner
const
&refiner);
52
54
~PtexIndices
();
55
57
63
int
GetNumFaces
()
const
;
64
67
int
GetFaceId
(
Index
f)
const
;
68
83
void
GetAdjacency
(
84
TopologyRefiner
const
&refiner,
85
int
face,
int
quadrant,
86
int
adjFaces[4],
int
adjEdges[4])
const
;
87
89
90
private
:
91
92
void
initializePtexIndices(
TopologyRefiner
const
&refiner);
93
94
private
:
95
96
std::vector<Index> _ptexIndices;
97
};
98
99
100
}
// end namespace Far
101
102
}
// end namespace OPENSUBDIV_VERSION
103
using namespace
OPENSUBDIV_VERSION;
104
}
// end namespace OpenSubdiv
105
106
#endif
/* OPENSUBDIV3_FAR_PTEX_INDICES_H */
OpenSubdiv
Definition:
error.h:30
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::~PtexIndices
~PtexIndices()
Destructor.
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices
Object used to compute and query ptex face indices.
Definition:
ptexIndices.h:46
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::TopologyRefiner
Stores topology data for a specified set of refinement options.
Definition:
topologyRefiner.h:51
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::PtexIndices
PtexIndices(TopologyRefiner const &refiner)
Constructor.
OpenSubdiv::OPENSUBDIV_VERSION::Far::Index
Vtr::Index Index
Definition:
types.h:41
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::GetNumFaces
int GetNumFaces() const
Returns the number of ptex faces in the mesh.
OpenSubdiv::OPENSUBDIV_VERSION::Far::PtexIndices::GetFaceId
int GetFaceId(Index f) const
Returns the ptex face index given a coarse face 'f' or -1.
opensubdiv
far
ptexIndices.h
Generated on Fri Apr 24 2020 11:55:31 for My Project by
1.8.17