HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
geomSubset.h
Go to the documentation of this file.
1 //
2 // Copyright 2018 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_GEOM_SUBSET_H
8 #define PXR_IMAGING_HD_GEOM_SUBSET_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/imaging/hd/api.h"
12 #include "pxr/imaging/hd/version.h"
13 #include "pxr/usd/sdf/path.h"
14 #include "pxr/base/vt/array.h"
15 #include <vector>
16 
18 
19 /// \class HdGeomSubset
20 ///
21 /// Describes a subset of a piece of geometry as a set of indices.
22 ///
23 struct HdGeomSubset {
24  enum Type {
25  /// A subset of faces
27 
28  // For now, there is only one type, but this may grow in the future
29  // to accomodate edges, points, etc.
30  };
31 
32  /// The type of elements this geometry subset includes.
34  /// The path used to identify this subset in the scene.
36  /// The path used to identify this material bound to the subset.
38  /// The list of element indices contained in the subset.
39  VtIntArray indices;
40 };
41 
42 /// A group of geometry subsets.
43 typedef std::vector<HdGeomSubset> HdGeomSubsets;
44 
45 HD_API
46 bool operator==(const HdGeomSubset& lhs, const HdGeomSubset& rhs);
47 
49 
50 #endif // PXR_IMAGING_HD_GEOM_SUBSET_H
#define HD_API
Definition: api.h:23
A subset of faces.
Definition: geomSubset.h:26
VtIntArray indices
The list of element indices contained in the subset.
Definition: geomSubset.h:39
Definition: path.h:273
SdfPath id
The path used to identify this subset in the scene.
Definition: geomSubset.h:35
std::vector< HdGeomSubset > HdGeomSubsets
A group of geometry subsets.
Definition: geomSubset.h:43
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
SdfPath materialId
The path used to identify this material bound to the subset.
Definition: geomSubset.h:37
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
Type type
The type of elements this geometry subset includes.
Definition: geomSubset.h:33
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542