Blender V5.3
IO_ply.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 "BLI_path_utils.hh"
12
13#include "BKE_geometry_set.hh"
14
15#include "DEG_depsgraph.hh"
16
17#include "DNA_ID.h"
18
19#include "IO_orientation.hh"
20
21namespace blender {
22
23struct Mesh;
24struct bContext;
25struct PointCloud;
26struct ReportList;
27
29 None = 0,
30 sRGB = 1,
31 Linear = 2,
32};
33
36 char filepath[FILE_MAX] = "";
39
41 const char *blen_filepath = nullptr;
42
44 bool ascii_format = false;
45
46 /* Geometry Transform options. */
49 float global_scale = 1.0f;
50
51 /* File Write Options. */
53 bool apply_modifiers = true;
55 bool export_uv = true;
56 bool export_normals = false;
58 bool export_attributes = true;
60 char collection[MAX_ID_NAME - 2] = "";
61
62 ReportList *reports = nullptr;
63};
64
78
79void PLY_export(bContext *C, const PLYExportParams &params);
80
81void PLY_import(bContext *C, const PLYImportParams &params);
82
85
86/* If the file is detected to be representing a gaussian splat the result is a point cloud object
87 * with the type set to "3D Gaussian Splat".
88 * For other files returns mesh stored in the geometry set.
89 *
90 * Upon error returns an empty geometry set. Errors are reported to `params.reports`. */
92
93} // namespace blender
#define FILE_MAX
ID and Library types, which are fundamental for SDNA.
#define MAX_ID_NAME
Definition DNA_ID.h:367
#define C
Definition RandGen.cpp:29
BMesh Iterators.
ePLYVertexColorMode
Definition IO_ply.hh:28
Mesh * PLY_import_mesh(const PLYImportParams &params)
Definition IO_ply.cc:46
void PLY_export(bContext *C, const PLYExportParams &params)
Definition IO_ply.cc:32
PointCloud * PLY_import_point_cloud(const PLYImportParams &params)
Definition IO_ply.cc:51
bke::GeometrySet PLY_import_geometry_set(const PLYImportParams &params)
Definition IO_ply.cc:56
void PLY_import(bContext *C, const PLYImportParams &params)
Definition IO_ply.cc:39
ePLYVertexColorMode vertex_colors
Definition IO_ply.hh:57
char collection[MAX_ID_NAME - 2]
Definition IO_ply.hh:60
ReportList * reports
Definition IO_ply.hh:62
char filepath[FILE_MAX]
Definition IO_ply.hh:36
eEvaluationMode evaluation_mode
Definition IO_ply.hh:54
char file_base_for_tests[FILE_MAX]
Definition IO_ply.hh:38
const char * blen_filepath
Definition IO_ply.hh:41
ePLYVertexColorMode vertex_colors
Definition IO_ply.hh:72
ReportList * reports
Definition IO_ply.hh:76
char filepath[FILE_MAX]
Definition IO_ply.hh:67