Blender V5.3
usd_api_modifier.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
8
9#include "DNA_listBase.h"
10
11namespace blender {
12
14struct CacheObjectPath;
15struct CacheReader;
16struct Object;
17struct Main;
18struct Mesh;
19
20namespace bke {
21struct GeometrySet;
22}
23
24namespace io::usd {
25
31 double motion_sample_time; /* USD TimeCode in frames. */
32 int read_flags; /* MOD_MESHSEQ_xxx value that is set from MeshSeqCacheModifierData.read_flag. */
33};
34
35USDMeshReadParams create_mesh_read_params(double motion_sample_time, int read_flags);
36
38 const char *filepath,
39 ListBaseT<CacheObjectPath> *object_paths);
40
42
43void USD_get_transform(CacheReader *reader, float4x4 &r_mat_world, float time, float scale);
44
47 const Object *ob,
48 bke::GeometrySet &geometry_set,
49 USDMeshReadParams params,
50 const char **r_err_str);
51
53 const Object *ob,
54 const Mesh *existing_mesh,
55 double time,
56 const char **r_err_str);
57
59 CacheReader *reader,
60 Object *object,
61 const char *object_path);
62
64
65}; // namespace io::usd
66
67} // namespace blender
These structs are the foundation for all linked lists in the library system.
float3x3 scale(float3x3 mat, float2 scale)
CacheReader * CacheReader_open_usd_object(CacheArchiveHandle *handle, CacheReader *reader, Object *object, const char *object_path)
bool USD_mesh_topology_changed(CacheReader *reader, const Object *ob, const Mesh *existing_mesh, const double time, const char **r_err_str)
USDMeshReadParams create_mesh_read_params(const double motion_sample_time, const int read_flags)
void USD_read_geometry(CacheReader *reader, const Object *ob, bke::GeometrySet &geometry_set, const USDMeshReadParams params, const char **r_err_str)
void USD_get_transform(CacheReader *reader, float4x4 &r_mat_world, float time, float scale)
void USD_free_handle(CacheArchiveHandle *handle)
void USD_CacheReader_free(CacheReader *reader)
CacheArchiveHandle * USD_create_handle(Main *, const char *filepath, ListBaseT< CacheObjectPath > *object_paths)
BMesh Iterators.
MatBase< float, 4, 4 > float4x4