Blender V4.3
IO_stl.cc
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#include "BLI_timeit.hh"
10
11#include "IO_stl.hh"
12#include "stl_export.hh"
13#include "stl_import.hh"
14
15void STL_import(bContext *C, const STLImportParams *import_params)
16{
17 SCOPED_TIMER("STL Import");
18 blender::io::stl::importer_main(C, *import_params);
19}
20
21void STL_export(bContext *C, const STLExportParams *export_params)
22{
23 SCOPED_TIMER("STL Export");
24 blender::io::stl::exporter_main(C, *export_params);
25}
26
27Mesh *STL_import_mesh(const STLImportParams *import_params)
28{
29 return blender::io::stl::read_stl_file(*import_params);
30}
#define SCOPED_TIMER(name)
Definition BLI_timeit.hh:61
Mesh * STL_import_mesh(const STLImportParams *import_params)
Definition IO_stl.cc:27
void STL_import(bContext *C, const STLImportParams *import_params)
Definition IO_stl.cc:15
void STL_export(bContext *C, const STLExportParams *export_params)
Definition IO_stl.cc:21
void importer_main(const bContext *C, const STLImportParams &import_params)
void exporter_main(const bContext *C, const STLExportParams &export_params)
Mesh * read_stl_file(const STLImportParams &import_params)
Definition stl_import.cc:50