Blender V5.3
IO_wavefront_obj.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 <limits.h>
12
13#include "BLI_path_utils.hh"
14
15#include "BKE_geometry_set.hh"
16
17#include "DEG_depsgraph.hh"
18
19#include "IO_orientation.hh"
20#include "IO_path_util_types.hh"
21
22namespace blender {
23
24struct bContext;
25struct ReportList;
26
29 char filepath[FILE_MAX] = "";
32 char collection[MAX_ID_NAME - 2] = "";
33
35 const char *blen_filepath = nullptr;
36
38 bool export_animation = false;
40 int start_frame = INT_MIN;
43
44 /* Geometry Transform options. */
47 float global_scale = 1.0f;
48
49 /* File Write Options. */
51 bool apply_modifiers = true;
52 bool apply_transform = true;
54 bool export_uv = true;
55 bool export_normals = true;
56 bool export_colors = false;
57 bool export_materials = true;
62
63 /* Grouping options. */
67 /* Calculate smooth groups from sharp edges. */
69 /* Create bitflags instead of the default "0"/"1" group IDs. */
71
72 ReportList *reports = nullptr;
73};
74
83
106
110void OBJ_import_geometries(const OBJImportParams *import_params,
111 Vector<bke::GeometrySet> &geometries);
112
118void OBJ_import(bContext *C, const OBJImportParams *import_params);
119
123void OBJ_export(bContext *C, const OBJExportParams *export_params);
124
125} // namespace blender
#define FILE_MAX
#define MAX_ID_NAME
Definition DNA_ID.h:367
#define C
Definition RandGen.cpp:29
#define INT_MAX
BMesh Iterators.
void OBJ_export(bContext *C, const OBJExportParams *export_params)
@ DAG_EVAL_VIEWPORT
void OBJ_import(bContext *C, const OBJImportParams *import_params)
@ OBJ_MTL_NAME_COLLISION_REFERENCE_EXISTING
@ OBJ_MTL_NAME_COLLISION_MAKE_UNIQUE
void OBJ_import_geometries(const OBJImportParams *import_params, Vector< bke::GeometrySet > &geometries)
eEvaluationMode export_eval_mode
char collection[MAX_ID_NAME - 2]
ePathReferenceMode path_mode
char file_base_for_tests[FILE_MAX]
eOBJMtlNameCollisionMode mtl_name_collision_mode