Blender
V5.3
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 "
DEG_depsgraph.hh
"
14
15
#include "
DNA_ID.h
"
16
17
#include "
IO_orientation.hh
"
18
19
namespace
blender
{
20
21
struct
Mesh
;
22
struct
bContext
;
23
struct
ReportList
;
24
25
struct
STLImportParams
{
27
char
filepath
[
FILE_MAX
] =
""
;
28
eIOAxis
forward_axis
=
IO_AXIS_Y
;
29
eIOAxis
up_axis
=
IO_AXIS_Z
;
30
bool
use_facet_normal
=
false
;
31
bool
use_scene_unit
=
false
;
32
float
global_scale
= 1.0f;
33
bool
use_mesh_validate
=
true
;
34
35
ReportList
*
reports
=
nullptr
;
36
};
37
38
struct
STLExportParams
{
40
char
filepath
[
FILE_MAX
] =
""
;
41
eIOAxis
forward_axis
=
IO_AXIS_Y
;
42
eIOAxis
up_axis
=
IO_AXIS_Z
;
43
float
global_scale
= 1.0f;
44
bool
export_selected_objects
=
false
;
45
bool
use_scene_unit
=
false
;
46
bool
apply_modifiers
=
true
;
47
eEvaluationMode
evaluation_mode
=
DAG_EVAL_RENDER
;
48
bool
ascii_format
=
false
;
49
bool
use_batch
=
false
;
50
char
collection
[
MAX_ID_NAME
- 2] =
""
;
51
52
ReportList
*
reports
=
nullptr
;
53
};
54
55
void
STL_import
(
bContext
*
C
,
const
STLImportParams
*import_params);
56
void
STL_export
(
bContext
*
C
,
const
STLExportParams
*export_params);
57
58
Mesh
*
STL_import_mesh
(
const
STLImportParams
*import_params);
59
60
}
// namespace blender
BLI_path_utils.hh
FILE_MAX
#define FILE_MAX
Definition
BLI_path_utils.hh:696
DEG_depsgraph.hh
DNA_ID.h
ID and Library types, which are fundamental for SDNA.
MAX_ID_NAME
#define MAX_ID_NAME
Definition
DNA_ID.h:367
IO_orientation.hh
C
#define C
Definition
RandGen.cpp:29
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::STL_import
void STL_import(bContext *C, const STLImportParams *import_params)
Definition
IO_stl.cc:17
blender::STL_export
void STL_export(bContext *C, const STLExportParams *export_params)
Definition
IO_stl.cc:23
blender::eEvaluationMode
eEvaluationMode
Definition
DEG_depsgraph.hh:46
blender::DAG_EVAL_RENDER
@ DAG_EVAL_RENDER
Definition
DEG_depsgraph.hh:48
blender::eIOAxis
eIOAxis
Definition
IO_orientation.hh:18
blender::IO_AXIS_Y
@ IO_AXIS_Y
Definition
IO_orientation.hh:20
blender::IO_AXIS_Z
@ IO_AXIS_Z
Definition
IO_orientation.hh:21
blender::STL_import_mesh
Mesh * STL_import_mesh(const STLImportParams *import_params)
Definition
IO_stl.cc:29
blender::Mesh
Definition
DNA_mesh_types.h:148
blender::ReportList
Definition
BKE_report.hh:78
blender::STLExportParams
Definition
IO_stl.hh:38
blender::STLExportParams::evaluation_mode
eEvaluationMode evaluation_mode
Definition
IO_stl.hh:47
blender::STLExportParams::export_selected_objects
bool export_selected_objects
Definition
IO_stl.hh:44
blender::STLExportParams::up_axis
eIOAxis up_axis
Definition
IO_stl.hh:42
blender::STLExportParams::apply_modifiers
bool apply_modifiers
Definition
IO_stl.hh:46
blender::STLExportParams::use_batch
bool use_batch
Definition
IO_stl.hh:49
blender::STLExportParams::forward_axis
eIOAxis forward_axis
Definition
IO_stl.hh:41
blender::STLExportParams::collection
char collection[MAX_ID_NAME - 2]
Definition
IO_stl.hh:50
blender::STLExportParams::reports
ReportList * reports
Definition
IO_stl.hh:52
blender::STLExportParams::use_scene_unit
bool use_scene_unit
Definition
IO_stl.hh:45
blender::STLExportParams::filepath
char filepath[FILE_MAX]
Definition
IO_stl.hh:40
blender::STLExportParams::global_scale
float global_scale
Definition
IO_stl.hh:43
blender::STLExportParams::ascii_format
bool ascii_format
Definition
IO_stl.hh:48
blender::STLImportParams
Definition
IO_stl.hh:25
blender::STLImportParams::reports
ReportList * reports
Definition
IO_stl.hh:35
blender::STLImportParams::use_scene_unit
bool use_scene_unit
Definition
IO_stl.hh:31
blender::STLImportParams::global_scale
float global_scale
Definition
IO_stl.hh:32
blender::STLImportParams::forward_axis
eIOAxis forward_axis
Definition
IO_stl.hh:28
blender::STLImportParams::filepath
char filepath[FILE_MAX]
Definition
IO_stl.hh:27
blender::STLImportParams::use_facet_normal
bool use_facet_normal
Definition
IO_stl.hh:30
blender::STLImportParams::use_mesh_validate
bool use_mesh_validate
Definition
IO_stl.hh:33
blender::STLImportParams::up_axis
eIOAxis up_axis
Definition
IO_stl.hh:29
blender::bContext
Definition
blenkernel/intern/context.cc:65
Generated on
for Blender by
doxygen
1.18.0