Blender V5.0
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
22struct bContext;
23struct ReportList;
24
27 char filepath[FILE_MAX] = "";
30 char collection[MAX_ID_NAME - 2] = "";
31
33 const char *blen_filepath = nullptr;
34
36 bool export_animation = false;
38 int start_frame = INT_MIN;
40 int end_frame = INT_MAX;
41
42 /* Geometry Transform options. */
45 float global_scale = 1.0f;
46
47 /* File Write Options. */
49 bool apply_modifiers = true;
50 bool apply_transform = true;
52 bool export_uv = true;
53 bool export_normals = true;
54 bool export_colors = false;
55 bool export_materials = true;
60
61 /* Grouping options. */
65 /* Calculate smooth groups from sharp edges. */
67 /* Create bitflags instead of the default "0"/"1" group IDs. */
69
70 ReportList *reports = nullptr;
71};
72
81
104
108void OBJ_import_geometries(const OBJImportParams *import_params,
110
116void OBJ_import(bContext *C, const OBJImportParams *import_params);
117
121void OBJ_export(bContext *C, const OBJExportParams *export_params);
#define FILE_MAX
eEvaluationMode
@ DAG_EVAL_VIEWPORT
#define MAX_ID_NAME
Definition DNA_ID.h:373
eIOAxis
@ IO_AXIS_Y
@ IO_AXIS_NEGATIVE_Z
ePathReferenceMode
@ PATH_REFERENCE_AUTO
void OBJ_import(bContext *C, const OBJImportParams *import_params)
eOBJMtlNameCollisionMode
@ OBJ_MTL_NAME_COLLISION_MAKE_UNIQUE
@ OBJ_MTL_NAME_COLLISION_REFERENCE_EXISTING
void OBJ_export(bContext *C, const OBJExportParams *export_params)
void OBJ_import_geometries(const OBJImportParams *import_params, blender::Vector< blender::bke::GeometrySet > &geometries)
#define C
Definition RandGen.cpp:29
eEvaluationMode export_eval_mode
const char * blen_filepath
char file_base_for_tests[FILE_MAX]
ReportList * reports
char collection[MAX_ID_NAME - 2]
ePathReferenceMode path_mode
char filepath[FILE_MAX]
eOBJMtlNameCollisionMode mtl_name_collision_mode
char filepath[FILE_MAX]