blob: 91b6ba3a7142a2144c26fd0b66ca4c562a37f591 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2020 Blender Foundation. All rights reserved. */
#pragma once
#include "usd_writer_mesh.h"
namespace blender::io::usd {
class USDMetaballWriter : public USDGenericMeshWriter {
public:
USDMetaballWriter(const USDExporterContext &ctx);
protected:
virtual Mesh *get_export_mesh(Object *object_eval, bool &r_needsfree) override;
virtual void free_export_mesh(Mesh *mesh) override;
virtual bool is_supported(const HierarchyContext *context) const override;
virtual bool check_is_animated(const HierarchyContext &context) const override;
private:
bool is_basis_ball(Scene *scene, Object *ob) const;
};
} // namespace blender::io::usd
|