This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/io/stl/IO_stl.h
Iyad Ahmed 7c511f1b47 STL: Add new C++ based STL importer
A new experimentatl STL importer, written in C++. Roughly 7-9x faster than the
Python based one.

Reviewed By: Aras Pranckevicius, Hans Goudey.
Differential Revision: https://developer.blender.org/D14941
2022-06-06 20:57:38 +03:00

36 lines
608 B
C++

/* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup stl
*/
#pragma once
#include "BKE_context.h"
#include "BLI_path_util.h"
#include "IO_orientation.h"
#ifdef __cplusplus
extern "C" {
#endif
struct STLImportParams {
/** Full path to the source STL file to import. */
char filepath[FILE_MAX];
eIOAxis forward_axis;
eIOAxis up_axis;
bool use_facet_normal;
bool use_scene_unit;
float global_scale;
bool use_mesh_validate;
};
/**
* C-interface for the importer.
*/
void STL_import(bContext *C, const struct STLImportParams *import_params);
#ifdef __cplusplus
}
#endif