Blender
V5.0
source
blender
io
stl
IO_stl.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 "
BLI_path_utils.hh
"
12
13
#include "
DNA_ID.h
"
14
15
#include "
IO_orientation.hh
"
16
17
struct
Mesh
;
18
struct
bContext
;
19
struct
ReportList
;
20
21
struct
STLImportParams
{
23
char
filepath
[
FILE_MAX
] =
""
;
24
eIOAxis
forward_axis
=
IO_AXIS_Y
;
25
eIOAxis
up_axis
=
IO_AXIS_Z
;
26
bool
use_facet_normal
=
false
;
27
bool
use_scene_unit
=
false
;
28
float
global_scale
= 1.0f;
29
bool
use_mesh_validate
=
true
;
30
31
ReportList
*
reports
=
nullptr
;
32
};
33
34
struct
STLExportParams
{
36
char
filepath
[
FILE_MAX
] =
""
;
37
eIOAxis
forward_axis
=
IO_AXIS_Y
;
38
eIOAxis
up_axis
=
IO_AXIS_Z
;
39
float
global_scale
= 1.0f;
40
bool
export_selected_objects
=
false
;
41
bool
use_scene_unit
=
false
;
42
bool
apply_modifiers
=
true
;
43
bool
ascii_format
=
false
;
44
bool
use_batch
=
false
;
45
char
collection
[
MAX_ID_NAME
- 2] =
""
;
46
47
ReportList
*
reports
=
nullptr
;
48
};
49
50
void
STL_import
(
bContext
*
C
,
const
STLImportParams
*import_params);
51
void
STL_export
(
bContext
*
C
,
const
STLExportParams
*export_params);
52
53
Mesh
*
STL_import_mesh
(
const
STLImportParams
*import_params);
BLI_path_utils.hh
FILE_MAX
#define FILE_MAX
Definition
BLI_path_utils.hh:668
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
MAX_ID_NAME
#define MAX_ID_NAME
Definition
DNA_ID.h:373
IO_orientation.hh
eIOAxis
eIOAxis
Definition
IO_orientation.hh:12
IO_AXIS_Y
@ IO_AXIS_Y
Definition
IO_orientation.hh:14
IO_AXIS_Z
@ IO_AXIS_Z
Definition
IO_orientation.hh:15
STL_import_mesh
Mesh * STL_import_mesh(const STLImportParams *import_params)
Definition
IO_stl.cc:27
STL_import
void STL_import(bContext *C, const STLImportParams *import_params)
Definition
IO_stl.cc:15
STL_export
void STL_export(bContext *C, const STLExportParams *export_params)
Definition
IO_stl.cc:21
C
#define C
Definition
RandGen.cpp:29
Mesh
Definition
DNA_mesh_types.h:58
ReportList
Definition
BKE_report.hh:74
STLExportParams
Definition
IO_stl.hh:34
STLExportParams::up_axis
eIOAxis up_axis
Definition
IO_stl.hh:38
STLExportParams::collection
char collection[MAX_ID_NAME - 2]
Definition
IO_stl.hh:45
STLExportParams::filepath
char filepath[FILE_MAX]
Definition
IO_stl.hh:36
STLExportParams::export_selected_objects
bool export_selected_objects
Definition
IO_stl.hh:40
STLExportParams::apply_modifiers
bool apply_modifiers
Definition
IO_stl.hh:42
STLExportParams::forward_axis
eIOAxis forward_axis
Definition
IO_stl.hh:37
STLExportParams::ascii_format
bool ascii_format
Definition
IO_stl.hh:43
STLExportParams::reports
ReportList * reports
Definition
IO_stl.hh:47
STLExportParams::global_scale
float global_scale
Definition
IO_stl.hh:39
STLExportParams::use_scene_unit
bool use_scene_unit
Definition
IO_stl.hh:41
STLExportParams::use_batch
bool use_batch
Definition
IO_stl.hh:44
STLImportParams
Definition
IO_stl.hh:21
STLImportParams::up_axis
eIOAxis up_axis
Definition
IO_stl.hh:25
STLImportParams::use_mesh_validate
bool use_mesh_validate
Definition
IO_stl.hh:29
STLImportParams::global_scale
float global_scale
Definition
IO_stl.hh:28
STLImportParams::forward_axis
eIOAxis forward_axis
Definition
IO_stl.hh:24
STLImportParams::filepath
char filepath[FILE_MAX]
Definition
IO_stl.hh:23
STLImportParams::reports
ReportList * reports
Definition
IO_stl.hh:31
STLImportParams::use_facet_normal
bool use_facet_normal
Definition
IO_stl.hh:26
STLImportParams::use_scene_unit
bool use_scene_unit
Definition
IO_stl.hh:27
bContext
Definition
blenkernel/intern/context.cc:63
Generated on
for Blender by
doxygen
1.16.1