18#ifndef PXR_IMAGING_HD_MESH_TOPOLOGY_SCHEMA_H
19#define PXR_IMAGING_HD_MESH_TOPOLOGY_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
26#include "pxr/imaging/hd/schema.h"
31PXR_NAMESPACE_OPEN_SCOPE
36#define HD_MESH_TOPOLOGY_SCHEMA_TOKENS \
46 HD_MESH_TOPOLOGY_SCHEMA_TOKENS);
51class HdMeshTopologySchema :
public HdSchema
57 HdMeshTopologySchema(HdContainerDataSourceHandle container)
66 static HdMeshTopologySchema GetFromParent(
67 const HdContainerDataSourceHandle &fromParentContainer);
78 HdIntArrayDataSourceHandle GetFaceVertexCounts()
const;
81 HdIntArrayDataSourceHandle GetFaceVertexIndices()
const;
84 HdIntArrayDataSourceHandle GetHoleIndices()
const;
87 HdTokenDataSourceHandle GetOrientation()
const;
97 static const TfToken &GetSchemaToken();
117 static HdContainerDataSourceHandle
119 const HdIntArrayDataSourceHandle &faceVertexCounts,
120 const HdIntArrayDataSourceHandle &faceVertexIndices,
121 const HdIntArrayDataSourceHandle &holeIndices,
122 const HdTokenDataSourceHandle &orientation
136 const HdIntArrayDataSourceHandle &faceVertexCounts);
139 const HdIntArrayDataSourceHandle &faceVertexIndices);
142 const HdIntArrayDataSourceHandle &holeIndices);
145 const HdTokenDataSourceHandle &orientation);
149 HdContainerDataSourceHandle
Build();
152 HdIntArrayDataSourceHandle _faceVertexCounts;
153 HdIntArrayDataSourceHandle _faceVertexIndices;
154 HdIntArrayDataSourceHandle _holeIndices;
155 HdTokenDataSourceHandle _orientation;
166 static HdTokenDataSourceHandle BuildOrientationDataSource(
172PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.