blob: 6dcad2ffac82fb6b54cf6c939739fc1f8643a8b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2021 Tangent Animation. All rights reserved. */
#pragma once
#include "usd.h"
#include "usd_reader_xform.h"
struct Mesh;
namespace blender::io::usd {
class USDGeomReader : public USDXformReader {
public:
USDGeomReader(const pxr::UsdPrim &prim,
const USDImportParams &import_params,
const ImportSettings &settings)
: USDXformReader(prim, import_params, settings)
{
}
virtual Mesh *read_mesh(struct Mesh *existing_mesh,
double motionSampleTime,
int read_flag,
const char **err_str) = 0;
virtual bool topology_changed(Mesh * /* existing_mesh */, double /* motionSampleTime */)
{
return true;
}
void add_cache_modifier();
void add_subdiv_modifier();
};
} // namespace blender::io::usd
|