Blender V5.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
8
9#pragma once
10
11#include "IO_ply.hh"
12#include "ply_data.hh"
13
14#include "BKE_geometry_set.hh"
15
16namespace blender {
17
18struct bContext;
19struct Mesh;
20struct Main;
21struct PointCloud;
22struct Scene;
23struct ViewLayer;
24
25namespace io::ply {
26
27class PlyReadBuffer;
28
29Mesh *import_mesh(const PLYImportParams &import_params);
30PointCloud *import_point_cloud(const PLYImportParams &import_params);
31bke::GeometrySet import_geometry_set(const PLYImportParams &import_params);
32
33/* Main import function used from within Blender. */
34void importer_main(bContext *C, const PLYImportParams &import_params);
35
36/* Used from tests, where full bContext does not exist. */
37void importer_main(Main *bmain,
38 Scene *scene,
39 ViewLayer *view_layer,
40 const PLYImportParams &import_params);
41
42const char *read_header(PlyReadBuffer &file, PlyHeader &r_header);
43
44} // namespace io::ply
45} // namespace blender
#define C
Definition RandGen.cpp:29
void importer_main(bContext *C, const PLYImportParams &import_params)
PointCloud * import_point_cloud(const PLYImportParams &import_params)
const char * read_header(PlyReadBuffer &file, PlyHeader &r_header)
Mesh * import_mesh(const PLYImportParams &import_params)
bke::GeometrySet import_geometry_set(const PLYImportParams &import_params)
BMesh Iterators.