Blender V4.3
ply_import.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "IO_ply.hh"
12#include "ply_data.hh"
13
14struct bContext;
15struct Mesh;
16struct Main;
17struct Scene;
18struct ViewLayer;
19
20namespace blender::io::ply {
21
22class PlyReadBuffer;
23
24Mesh *import_mesh(const PLYImportParams &import_params);
25
26/* Main import function used from within Blender. */
27void importer_main(bContext *C, const PLYImportParams &import_params);
28
29/* Used from tests, where full bContext does not exist. */
30void importer_main(Main *bmain,
31 Scene *scene,
32 ViewLayer *view_layer,
33 const PLYImportParams &import_params);
34
35const char *read_header(PlyReadBuffer &file, PlyHeader &r_header);
36
37} // namespace blender::io::ply
void importer_main(bContext *C, const PLYImportParams &import_params)
const char * read_header(PlyReadBuffer &file, PlyHeader &r_header)
Definition ply_import.cc:98
Mesh * import_mesh(const PLYImportParams &import_params)