HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
refinerFactory.h
Go to the documentation of this file.
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_PX_OSD_REFINER_FACTORY_H
8 #define PXR_IMAGING_PX_OSD_REFINER_FACTORY_H
9 
10 /// \file pxOsd/refinerFactory.h
11 
12 #include "pxr/pxr.h"
13 #include "pxr/imaging/pxOsd/api.h"
15 #include "pxr/base/vt/array.h"
16 
17 #include <opensubdiv/far/topologyRefiner.h>
18 
19 #include <memory>
20 #include <vector>
21 
23 
24 
25 typedef std::shared_ptr<class OpenSubdiv::Far::TopologyRefiner>
27 
29 
30 public:
31 
32  /// Returns an OpenSubdiv TopologyRefiner
33  PXOSD_API
36 
37  /// Returns an OpenSubdiv TopologyRefiner with faceVarying topology
38  PXOSD_API
40  PxOsdMeshTopology const & topology,
41  std::vector<VtIntArray> const &fvarTopologies,
42  TfToken name=TfToken());
43 
44 };
45 
46 
48 
49 #endif // PXR_IMAGING_PX_OSD_REFINER_FACTORY_H
PXR_NAMESPACE_OPEN_SCOPE typedef std::shared_ptr< class OpenSubdiv::Far::TopologyRefiner > PxOsdTopologyRefinerSharedPtr
Definition: token.h:70
#define PXOSD_API
Definition: api.h:23
GT_API const UT_StringHolder topology
GLuint const GLchar * name
Definition: glcorearb.h:786
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
static PXOSD_API PxOsdTopologyRefinerSharedPtr Create(PxOsdMeshTopology const &topology, TfToken name=TfToken())
Returns an OpenSubdiv TopologyRefiner.
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74