Blender V5.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
8
9#include "BLI_timeit.hh"
10
11#include "IO_stl.hh"
12#include "stl_export.hh"
13#include "stl_import.hh"
14
15namespace blender {
16
17void STL_import(bContext *C, const STLImportParams *import_params)
18{
19 SCOPED_TIMER("STL Import");
20 io::stl::importer_main(C, *import_params);
21}
22
23void STL_export(bContext *C, const STLExportParams *export_params)
24{
25 SCOPED_TIMER("STL Export");
26 io::stl::exporter_main(C, *export_params);
27}
28
29Mesh *STL_import_mesh(const STLImportParams *import_params)
30{
31 return io::stl::read_stl_file(*import_params);
32}
33
34} // namespace blender
#define SCOPED_TIMER(name)
Definition BLI_timeit.hh:64
#define C
Definition RandGen.cpp:29
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:57
BMesh Iterators.
void STL_import(bContext *C, const STLImportParams *import_params)
Definition IO_stl.cc:17
void STL_export(bContext *C, const STLExportParams *export_params)
Definition IO_stl.cc:23
Mesh * STL_import_mesh(const STLImportParams *import_params)
Definition IO_stl.cc:29