All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
vertexAdjacency.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HD_VERTEX_ADJACENCY_H
8#define PXR_IMAGING_HD_VERTEX_ADJACENCY_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/api.h"
12
13#include "pxr/base/vt/array.h"
14
15#include <memory>
16
17PXR_NAMESPACE_OPEN_SCOPE
18
19
20using Hd_VertexAdjacencySharedPtr =
21 std::shared_ptr<class Hd_VertexAdjacency>;
22
23class HdMeshTopology;
24
58class Hd_VertexAdjacency final
59{
60public:
61 HD_API
62 Hd_VertexAdjacency();
63
64 HD_API
65 ~Hd_VertexAdjacency();
66
70 HD_API
71 void BuildAdjacencyTable(HdMeshTopology const *topology);
72
74 int GetNumPoints() const {
75 return _numPoints;
76 }
77
79 VtIntArray const &GetAdjacencyTable() const {
80 return _adjacencyTable;
81 }
82
83private:
84 int _numPoints;
85 VtIntArray _adjacencyTable;
86};
87
88
89PXR_NAMESPACE_CLOSE_SCOPE
90
91#endif // PXR_IMAGING_HD_VERTEX_ADJACENCY_H
Topology data for meshes.
Definition: meshTopology.h:38