Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1//
2// Copyright 2021 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_IMAGING_HIO_OPENVDB_UTILS_H
9#define PXR_IMAGING_HIO_OPENVDB_UTILS_H
10
12
13#include "pxr/pxr.h"
14#include "pxr/imaging/hioOpenVDB/api.h"
15
16#include "openvdb/openvdb.h"
17#include <string>
18
19PXR_NAMESPACE_OPEN_SCOPE
20
23HIOOPENVDB_API
24openvdb::GridBase::Ptr
25HioOpenVDBGridFromAsset(const std::string& name, const std::string& assetPath);
26
29HIOOPENVDB_API
30openvdb::GridPtrVecPtr
31HioOpenVDBGridsFromAsset(const std::string& assetPath);
32
33PXR_NAMESPACE_CLOSE_SCOPE
34
35#endif // PXR_IMAGING_HIO_OPENVDB_UTILS_H
HIOOPENVDB_API openvdb::GridBase::Ptr HioOpenVDBGridFromAsset(const std::string &name, const std::string &assetPath)
Return a shared pointer to an OpenVDB grid with name (or nullptr if no grid matching name exists),...
HIOOPENVDB_API openvdb::GridPtrVecPtr HioOpenVDBGridsFromAsset(const std::string &assetPath)
Return a shared pointer to a vector of OpenVDB grids, given an assetPath.