Files
test/source/blender/io/stl/IO_stl.hh
Campbell Barton 8032ee9df2 Revert "Cleanup: Replace IO orientation enum with blenlib type"
This reverts commit 074dbf08cd.

This change caused PLY and OBJ tests not to compile,
even with the identifiers updated some OBJ tests fails
with different rotation values.
2023-09-01 10:35:14 +10:00

30 lines
584 B
C++

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* 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.hh"
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 STLImportParams *import_params);