Blender V5.3
usd_writer_points.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
7
8#include <pxr/usd/usdGeom/points.h>
9
10namespace blender {
11
12struct Main;
13struct PointCloud;
14
15namespace bke {
16class AttributeIter;
17} // namespace bke
18
19namespace io::usd {
20
21/* Writer for USD points. */
23 public:
26
27 protected:
28 void do_write(HierarchyContext &context) override;
29
30 private:
31 void write_generic_data(const bke::AttributeIter &attr,
32 const pxr::UsdGeomPoints &usd_points,
33 pxr::UsdTimeCode time);
34
35 void write_custom_data(const PointCloud *points,
36 const pxr::UsdGeomPoints &usd_points,
37 pxr::UsdTimeCode time);
38
39 void write_ids(const PointCloud *points,
40 const pxr::UsdGeomPoints &usd_points,
41 pxr::UsdTimeCode time);
42 void write_velocities(const PointCloud *points,
43 const pxr::UsdGeomPoints &usd_points,
44 pxr::UsdTimeCode time);
45};
46
47} // namespace io::usd
48} // namespace blender
#define final(a, b, c)
Definition BLI_hash_c.hh:21
USDAbstractWriter(const USDExporterContext &usd_export_context)
void do_write(HierarchyContext &context) override
USDPointsWriter(const USDExporterContext &ctx)
BMesh Iterators.