Blender V4.3
stl_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_stl.hh"
12
13struct bContext;
14struct Main;
15struct Mesh;
16struct Scene;
17struct ViewLayer;
18
19namespace blender::io::stl {
20
21void stl_import_report_error(FILE *file);
22
23/* Used from Geo nodes import for Mesh* access */
24Mesh *read_stl_file(const STLImportParams &import_params);
25
26/* Main import function used from within Blender. */
27void importer_main(const bContext *C, const STLImportParams &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 STLImportParams &import_params);
34} // namespace blender::io::stl
void importer_main(const bContext *C, const STLImportParams &import_params)
void stl_import_report_error(FILE *file)
Definition stl_import.cc:39
Mesh * read_stl_file(const STLImportParams &import_params)
Definition stl_import.cc:50