Blender V5.0
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
15struct bContext;
16struct Main;
17struct Mesh;
18struct Scene;
19struct ViewLayer;
20
21namespace blender::io::stl {
22
23void stl_import_report_error(FILE *file);
24
25/* Used from Geo nodes import for Mesh* access */
26Mesh *read_stl_file(const STLImportParams &import_params);
27
28/* Main import function used from within Blender. */
29void importer_main(const bContext *C, const STLImportParams &import_params);
30
31/* Used from tests, where full bContext does not exist. */
32void importer_main(Main *bmain,
33 Scene *scene,
34 ViewLayer *view_layer,
35 const STLImportParams &import_params);
36} // namespace blender::io::stl
struct ViewLayer ViewLayer
struct Mesh Mesh
struct Scene Scene
#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:42
Mesh * read_stl_file(const STLImportParams &import_params)
Definition stl_import.cc:53