All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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
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
22PXR_NAMESPACE_OPEN_SCOPE
23
24
25typedef std::shared_ptr<class OpenSubdiv::Far::TopologyRefiner>
26 PxOsdTopologyRefinerSharedPtr;
27
28class PxOsdRefinerFactory {
29
30public:
31
33 PXOSD_API
34 static PxOsdTopologyRefinerSharedPtr Create(
35 PxOsdMeshTopology const & topology, TfToken name=TfToken());
36
38 PXOSD_API
39 static PxOsdTopologyRefinerSharedPtr Create(
40 PxOsdMeshTopology const & topology,
41 std::vector<VtIntArray> const &fvarTopologies,
42 TfToken name=TfToken());
43
44};
45
46
47PXR_NAMESPACE_CLOSE_SCOPE
48
49#endif // PXR_IMAGING_PX_OSD_REFINER_FACTORY_H
Topology data for meshes.
Definition: meshTopology.h:52
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71