28 #ifndef PXR_IMAGING_HD_MESH_TOPOLOGY_SCHEMA_H 29 #define PXR_IMAGING_HD_MESH_TOPOLOGY_SCHEMA_H 31 #include "pxr/imaging/hd/api.h" 33 #include "pxr/imaging/hd/subdivisionTagsSchema.h" 36 PXR_NAMESPACE_OPEN_SCOPE
40 #define HDMESHTOPOLOGY_SCHEMA_TOKENS \ 50 HDMESHTOPOLOGY_SCHEMA_TOKENS);
54 class HdMeshTopologySchema :
public HdSchema 57 HdMeshTopologySchema(HdContainerDataSourceHandle container)
63 HdIntArrayDataSourceHandle GetFaceVertexCounts();
65 HdIntArrayDataSourceHandle GetFaceVertexIndices();
67 HdIntArrayDataSourceHandle GetHoleIndices();
69 HdTokenDataSourceHandle GetOrientation();
79 static HdContainerDataSourceHandle
81 const HdIntArrayDataSourceHandle &faceVertexCounts,
82 const HdIntArrayDataSourceHandle &faceVertexIndices,
83 const HdIntArrayDataSourceHandle &holeIndices,
84 const HdTokenDataSourceHandle &orientation
98 const HdIntArrayDataSourceHandle &faceVertexCounts);
101 const HdIntArrayDataSourceHandle &faceVertexIndices);
104 const HdIntArrayDataSourceHandle &holeIndices);
107 const HdTokenDataSourceHandle &orientation);
111 HdContainerDataSourceHandle
Build();
114 HdIntArrayDataSourceHandle _faceVertexCounts;
115 HdIntArrayDataSourceHandle _faceVertexIndices;
116 HdIntArrayDataSourceHandle _holeIndices;
117 HdTokenDataSourceHandle _orientation;
126 static HdMeshTopologySchema GetFromParent(
127 const HdContainerDataSourceHandle &fromParentContainer);
140 static HdTokenDataSourceHandle BuildOrientationDataSource(
145 PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...