Blender V5.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
8
9#pragma once
10
11#include <cstdio>
12
13#include "IO_stl.hh"
14
15namespace blender {
16
17struct bContext;
18struct Main;
19struct Mesh;
20struct Scene;
21struct ViewLayer;
22
23namespace io::stl {
24
25void stl_import_report_error(FILE *file);
26
27/* Used from Geo nodes import for Mesh* access */
28Mesh *read_stl_file(const STLImportParams &import_params);
29
30/* Main import function used from within Blender. */
31void importer_main(const bContext *C, const STLImportParams &import_params);
32
33/* Used from tests, where full bContext does not exist. */
34void importer_main(Main *bmain,
35 Scene *scene,
36 ViewLayer *view_layer,
37 const STLImportParams &import_params);
38} // namespace io::stl
39} // namespace blender
#define C
Definition RandGen.cpp:29
void importer_main(const bContext *C, const STLImportParams &import_params)
void stl_import_report_error(FILE *file)
Definition stl_import.cc:46
Mesh * read_stl_file(const STLImportParams &import_params)
Definition stl_import.cc:57
BMesh Iterators.