Blender V4.3
obj_exporter_tests.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#include "IO_wavefront_obj.hh"
8
9namespace blender::io::obj {
10
14 {
15 params.filepath[0] = '\0';
16 params.file_base_for_tests[0] = '\0';
17 params.blen_filepath = "";
18 params.export_animation = false;
19 params.start_frame = 0;
20 params.end_frame = 1;
21
22 params.forward_axis = IO_AXIS_NEGATIVE_Z;
23 params.up_axis = IO_AXIS_Y;
24 params.global_scale = 1.f;
25
26 params.apply_modifiers = true;
27 params.export_eval_mode = DAG_EVAL_VIEWPORT;
28 params.export_selected_objects = false;
29 params.export_uv = true;
30 params.export_normals = true;
31 params.export_colors = false;
32 params.export_materials = true;
33 params.path_mode = PATH_REFERENCE_AUTO;
34 params.export_triangulated_mesh = false;
35 params.export_curves_as_nurbs = false;
36 params.export_pbr_extensions = false;
37
38 params.export_object_groups = false;
39 params.export_material_groups = false;
40 params.export_vertex_groups = false;
41 params.export_smooth_groups = true;
42 params.smooth_groups_bitflags = false;
43
44 params.reports = nullptr;
45 }
46};
47
48} // namespace blender::io::obj
@ DAG_EVAL_VIEWPORT
@ IO_AXIS_Y
@ IO_AXIS_NEGATIVE_Z
@ PATH_REFERENCE_AUTO