All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
geomSubset.h
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
17PXR_NAMESPACE_OPEN_SCOPE
18
24 enum Type {
27
28 // For now, there is only one type, but this may grow in the future
29 // to accomodate edges, points, etc.
30 };
31
39 VtIntArray indices;
40};
41
43typedef std::vector<HdGeomSubset> HdGeomSubsets;
44
45HD_API
46bool operator==(const HdGeomSubset& lhs, const HdGeomSubset& rhs);
47
48PXR_NAMESPACE_CLOSE_SCOPE
49
50#endif // PXR_IMAGING_HD_GEOM_SUBSET_H
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Describes a subset of a piece of geometry as a set of indices.
Definition: geomSubset.h:23
@ TypeFaceSet
A subset of faces.
Definition: geomSubset.h:26
VtIntArray indices
The list of element indices contained in the subset.
Definition: geomSubset.h:39
SdfPath id
The path used to identify this subset in the scene.
Definition: geomSubset.h:35
SdfPath materialId
The path used to identify this material bound to the subset.
Definition: geomSubset.h:37
Type type
The type of elements this geometry subset includes.
Definition: geomSubset.h:33