Blender V4.5
obj_exporter_tests.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#include <gtest/gtest.h>
6#include <memory>
7#include <string>
8#include <system_error>
9
10#include "testing/testing.h"
12
13#include "BKE_appdir.hh"
14#include "BKE_blender_version.h"
15#include "BKE_main.hh"
16
17#include "BLI_fileops.h"
18#include "BLI_string.h"
19
20#include "BLO_readfile.hh"
21
22#include "DEG_depsgraph.hh"
23
25#include "obj_export_nurbs.hh"
26#include "obj_exporter.hh"
27
28namespace blender::io::obj {
29/* Set this true to keep comparison-failing test output in temp file directory. */
30constexpr bool save_failing_test_output = false;
31
32/* This is also the test name. */
34 public:
38 bool load_file_and_depsgraph(const std::string &filepath,
39 const eEvaluationMode eval_mode = DAG_EVAL_VIEWPORT)
40 {
41 if (!blendfile_load(filepath.c_str())) {
42 return false;
43 }
44 depsgraph_create(eval_mode);
45 return true;
46 }
47};
48
49const std::string all_objects_file = "io_tests" SEP_STR "blend_scene" SEP_STR "all_objects.blend";
50
51TEST_F(OBJExportTest, filter_objects_curves_as_mesh)
52{
54 if (!load_file_and_depsgraph(all_objects_file)) {
55 ADD_FAILURE();
56 return;
57 }
58 auto [objmeshes, objcurves]{filter_supported_objects(depsgraph, params)};
59 EXPECT_EQ(objmeshes.size(), 21);
60 EXPECT_EQ(objcurves.size(), 0);
61}
62
63TEST_F(OBJExportTest, filter_objects_curves_as_nurbs)
64{
66 if (!load_file_and_depsgraph(all_objects_file)) {
67 ADD_FAILURE();
68 return;
69 }
70 params.export_curves_as_nurbs = true;
71 auto [objmeshes, objcurves]{filter_supported_objects(depsgraph, params)};
72 EXPECT_EQ(objmeshes.size(), 18);
73 EXPECT_EQ(objcurves.size(), 3);
74}
75
76TEST_F(OBJExportTest, filter_objects_selected)
77{
79 if (!load_file_and_depsgraph(all_objects_file)) {
80 ADD_FAILURE();
81 return;
82 }
83 params.export_selected_objects = true;
84 params.export_curves_as_nurbs = true;
85 auto [objmeshes, objcurves]{filter_supported_objects(depsgraph, params)};
86 EXPECT_EQ(objmeshes.size(), 1);
87 EXPECT_EQ(objcurves.size(), 0);
88}
89
90TEST(obj_exporter_utils, append_negative_frame_to_filename)
91{
92 const char path_original[FILE_MAX] = SEP_STR "my_file.obj";
93 const char path_truth[FILE_MAX] = SEP_STR "my_file-0012.obj";
94 const int frame = -12;
95 char path_with_frame[FILE_MAX] = {0};
96 const bool ok = append_frame_to_filename(path_original, frame, path_with_frame);
97 EXPECT_TRUE(ok);
98 EXPECT_STREQ(path_with_frame, path_truth);
99}
100
101TEST(obj_exporter_utils, append_positive_frame_to_filename)
102{
103 const char path_original[FILE_MAX] = SEP_STR "my_file.obj";
104 const char path_truth[FILE_MAX] = SEP_STR "my_file0012.obj";
105 const int frame = 12;
106 char path_with_frame[FILE_MAX] = {0};
107 const bool ok = append_frame_to_filename(path_original, frame, path_with_frame);
108 EXPECT_TRUE(ok);
109 EXPECT_STREQ(path_with_frame, path_truth);
110}
111
112TEST(obj_exporter_utils, append_large_positive_frame_to_filename)
113{
114 const char path_original[FILE_MAX] = SEP_STR "my_file.obj";
115 const char path_truth[FILE_MAX] = SEP_STR "my_file1234567.obj";
116 const int frame = 1234567;
117 char path_with_frame[FILE_MAX] = {0};
118 const bool ok = append_frame_to_filename(path_original, frame, path_with_frame);
119 EXPECT_TRUE(ok);
120 EXPECT_STREQ(path_with_frame, path_truth);
121}
122
123static std::string read_temp_file_in_string(const std::string &file_path)
124{
125 std::string res;
126 size_t buffer_len;
127 void *buffer = BLI_file_read_text_as_mem(file_path.c_str(), 0, &buffer_len);
128 if (buffer != nullptr) {
129 res.assign((const char *)buffer, buffer_len);
130 MEM_freeN(buffer);
131 }
132 return res;
133}
134
135class ObjExporterWriterTest : public testing::Test {
136 protected:
137 void SetUp() override
138 {
139 BKE_tempdir_init(nullptr);
140 }
141
142 void TearDown() override
143 {
145 }
146
148 {
149 /* Use Latin Capital Letter A with Ogonek, Cyrillic Capital Letter Zhe
150 * at the end, to test I/O on non-English file names. */
151 const char *const temp_file_path = "output\xc4\x84\xd0\x96.OBJ";
152
153 return std::string(BKE_tempdir_session()) + SEP_STR + std::string(temp_file_path);
154 }
155
156 std::unique_ptr<OBJWriter> init_writer(const OBJExportParams &params,
157 const std::string &out_filepath)
158 {
159 try {
160 auto writer = std::make_unique<OBJWriter>(out_filepath.c_str(), params);
161 return writer;
162 }
163 catch (const std::system_error &ex) {
164 fprintf(stderr, "[%s] %s\n", ex.code().category().name(), ex.what());
165 return nullptr;
166 }
167 }
168};
169
171{
172 /* Because testing doesn't fully initialize Blender, we need the following. */
173 BKE_tempdir_init(nullptr);
174 std::string out_file_path = get_temp_obj_filename();
175 {
177 std::unique_ptr<OBJWriter> writer = init_writer(params, out_file_path);
178 if (!writer) {
179 ADD_FAILURE();
180 return;
181 }
182 writer->write_header();
183 }
184 const std::string result = read_temp_file_in_string(out_file_path);
185 using namespace std::string_literals;
186 ASSERT_EQ(result, "# Blender "s + BKE_blender_version_string() + "\n" + "# www.blender.org\n");
187}
188
190{
191 std::string out_file_path = get_temp_obj_filename();
192 {
194 std::unique_ptr<OBJWriter> writer = init_writer(params, out_file_path);
195 if (!writer) {
196 ADD_FAILURE();
197 return;
198 }
199 writer->write_mtllib_name("/Users/blah.mtl");
200 writer->write_mtllib_name("\\C:\\blah.mtl");
201 }
202 const std::string result = read_temp_file_in_string(out_file_path);
203 ASSERT_EQ(result, "mtllib blah.mtl\nmtllib blah.mtl\n");
204}
205
206TEST(obj_exporter_writer, format_handler_buffer_chunking)
207{
208 /* Use a tiny buffer chunk size, so that the test below ends up creating several blocks. */
209 FormatHandler h(16);
210 h.write_obj_object("abc");
211 h.write_obj_object("abcd");
212 h.write_obj_object("abcde");
213 h.write_obj_object("abcdef");
214 h.write_obj_object("012345678901234567890123456789abcd");
215 h.write_obj_object("123");
219 h.write_obj_nurbs_parm(0.0f);
221
222 size_t got_blocks = h.get_block_count();
223 ASSERT_EQ(got_blocks, 6);
224
225 std::string got_string = h.get_as_string();
226 using namespace std::string_literals;
227 const char *expected = R"(o abc
228o abcd
229o abcde
230o abcdef
231o 012345678901234567890123456789abcd
232o 123
233curv
234parm u 0.000000
235)";
236 ASSERT_EQ(got_string, expected);
237}
238
239/* Return true if string #a and string #b are equal after their first newline. */
240static bool strings_equal_after_first_lines(const std::string &a, const std::string &b)
241{
242 const size_t a_len = a.size();
243 const size_t b_len = b.size();
244 const size_t a_next = a.find_first_of('\n');
245 const size_t b_next = b.find_first_of('\n');
246 if (a_next == std::string::npos || b_next == std::string::npos) {
247 printf("Couldn't find newline in one of args\n");
248 return false;
249 }
250 if (a.compare(a_next, a_len - a_next, b, b_next, b_len - b_next) != 0) {
251 for (int i = 0; i < a_len - a_next && i < b_len - b_next; ++i) {
252 if (a[a_next + i] != b[b_next + i]) {
253 printf("Difference found at pos %zu of a\n", a_next + i);
254 printf("a: %s ...\n", a.substr(a_next + i, 100).c_str());
255 printf("b: %s ...\n", b.substr(b_next + i, 100).c_str());
256 return false;
258 }
259 return false;
260 }
261 return true;
262}
263
264/* From here on, tests are whole file tests, testing for golden output. */
265class OBJExportRegressionTest : public OBJExportTest {
266 public:
274 void compare_obj_export_to_golden(const std::string &blendfile,
275 const std::string &golden_obj,
276 const std::string &golden_mtl,
278 {
279 if (!load_file_and_depsgraph(blendfile)) {
280 return;
281 }
282 /* Because testing doesn't fully initialize Blender, we need the following. */
283 BKE_tempdir_init(nullptr);
284 std::string tempdir = std::string(BKE_tempdir_base());
285 std::string out_file_path = tempdir + BLI_path_basename(golden_obj.c_str());
286 STRNCPY(params.filepath, out_file_path.c_str());
287 params.blen_filepath = bfile->main->filepath;
288 std::string golden_file_path = blender::tests::flags_test_asset_dir() + SEP_STR + golden_obj;
290 golden_file_path.c_str(), params.file_base_for_tests, sizeof(params.file_base_for_tests));
291 export_frame(depsgraph, params, out_file_path.c_str());
292 std::string output_str = read_temp_file_in_string(out_file_path);
293
294 std::string golden_str = read_temp_file_in_string(golden_file_path);
295 bool are_equal = strings_equal_after_first_lines(output_str, golden_str);
296 if (save_failing_test_output && !are_equal) {
297 printf("failing test output in %s\n", out_file_path.c_str());
298 }
299 ASSERT_TRUE(are_equal);
300 if (!save_failing_test_output || are_equal) {
301 BLI_delete(out_file_path.c_str(), false, false);
302 }
303 if (!golden_mtl.empty()) {
304 std::string out_mtl_file_path = tempdir + BLI_path_basename(golden_mtl.c_str());
305 std::string output_mtl_str = read_temp_file_in_string(out_mtl_file_path);
306 std::string golden_mtl_file_path = blender::tests::flags_test_asset_dir() + SEP_STR +
307 golden_mtl;
308 std::string golden_mtl_str = read_temp_file_in_string(golden_mtl_file_path);
309 are_equal = strings_equal_after_first_lines(output_mtl_str, golden_mtl_str);
310 if (save_failing_test_output && !are_equal) {
311 printf("failing test output in %s\n", out_mtl_file_path.c_str());
312 }
313 ASSERT_TRUE(are_equal);
314 if (!save_failing_test_output || are_equal) {
315 BLI_delete(out_mtl_file_path.c_str(), false, false);
316 }
317 }
318 }
319};
320
324 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "all_tris.blend",
325 "io_tests" SEP_STR "obj" SEP_STR "all_tris.obj",
326 "io_tests" SEP_STR "obj" SEP_STR "all_tris.mtl",
327 params);
328}
329
330TEST_F(OBJExportRegressionTest, all_quads)
331{
333 params.global_scale = 2.0f;
334 params.export_materials = false;
335 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "all_quads.blend",
336 "io_tests" SEP_STR "obj" SEP_STR "all_quads.obj",
337 "",
338 params);
339}
340
341TEST_F(OBJExportRegressionTest, fgons)
342{
344 params.forward_axis = IO_AXIS_Y;
345 params.up_axis = IO_AXIS_Z;
346 params.export_materials = false;
347 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "fgons.blend",
348 "io_tests" SEP_STR "obj" SEP_STR "fgons.obj",
349 "",
350 params);
351}
352
353TEST_F(OBJExportRegressionTest, edges)
354{
356 params.forward_axis = IO_AXIS_Y;
357 params.up_axis = IO_AXIS_Z;
358 params.export_materials = false;
359 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "edges.blend",
360 "io_tests" SEP_STR "obj" SEP_STR "edges.obj",
361 "",
362 params);
363}
364
365TEST_F(OBJExportRegressionTest, vertices)
366{
368 params.forward_axis = IO_AXIS_Y;
369 params.up_axis = IO_AXIS_Z;
370 params.export_materials = false;
371 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
372 "cube_loose_edges_verts.blend",
373 "io_tests" SEP_STR "obj" SEP_STR "cube_loose_edges_verts.obj",
374 "",
375 params);
376}
377
378TEST_F(OBJExportRegressionTest, cube_loose_edges)
379{
381 params.forward_axis = IO_AXIS_Y;
382 params.up_axis = IO_AXIS_Z;
383 params.export_materials = false;
384 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "vertices.blend",
385 "io_tests" SEP_STR "obj" SEP_STR "vertices.obj",
386 "",
387 params);
388}
389
390TEST_F(OBJExportRegressionTest, non_uniform_scale)
391{
393 params.export_materials = false;
394 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
395 "non_uniform_scale.blend",
396 "io_tests" SEP_STR "obj" SEP_STR "non_uniform_scale.obj",
397 "",
398 params);
399}
400
401TEST_F(OBJExportRegressionTest, nurbs_as_nurbs)
402{
404 params.forward_axis = IO_AXIS_Y;
405 params.up_axis = IO_AXIS_Z;
406 params.export_materials = false;
407 params.export_curves_as_nurbs = true;
408 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "nurbs.blend",
409 "io_tests" SEP_STR "obj" SEP_STR "nurbs.obj",
410 "",
411 params);
412}
413
414TEST_F(OBJExportRegressionTest, nurbs_curves_as_nurbs)
415{
417 params.forward_axis = IO_AXIS_Y;
418 params.up_axis = IO_AXIS_Z;
419 params.export_materials = false;
420 params.export_curves_as_nurbs = true;
421 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "nurbs_curves.blend",
422 "io_tests" SEP_STR "obj" SEP_STR "nurbs_curves.obj",
423 "",
424 params);
425}
426
427TEST_F(OBJExportRegressionTest, nurbs_as_mesh)
428{
430 params.forward_axis = IO_AXIS_Y;
431 params.up_axis = IO_AXIS_Z;
432 params.export_materials = false;
433 params.export_curves_as_nurbs = false;
434 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "nurbs.blend",
435 "io_tests" SEP_STR "obj" SEP_STR "nurbs_mesh.obj",
436 "",
437 params);
438}
439
440TEST_F(OBJExportRegressionTest, cube_all_data_triangulated)
441{
443 params.forward_axis = IO_AXIS_Y;
444 params.up_axis = IO_AXIS_Z;
445 params.export_materials = false;
446 params.export_triangulated_mesh = true;
447 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "cube_all_data.blend",
448 "io_tests" SEP_STR "obj" SEP_STR "cube_all_data_triangulated.obj",
449 "",
450 params);
451}
452
453TEST_F(OBJExportRegressionTest, cube_normal_edit)
454{
456 params.forward_axis = IO_AXIS_Y;
457 params.up_axis = IO_AXIS_Z;
458 params.export_materials = false;
459 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
460 "cube_normal_edit.blend",
461 "io_tests" SEP_STR "obj" SEP_STR "cube_normal_edit.obj",
462 "",
463 params);
464}
465
466TEST_F(OBJExportRegressionTest, cube_vertex_groups)
467{
469 params.export_materials = false;
470 params.export_normals = false;
471 params.export_uv = false;
472 params.export_vertex_groups = true;
473 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
474 "cube_vertex_groups.blend",
475 "io_tests" SEP_STR "obj" SEP_STR "cube_vertex_groups.obj",
476 "",
477 params);
478}
479
480TEST_F(OBJExportRegressionTest, cubes_positioned)
481{
483 params.export_materials = false;
484 params.global_scale = 2.0f;
485 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
486 "cubes_positioned.blend",
487 "io_tests" SEP_STR "obj" SEP_STR "cubes_positioned.obj",
488 "",
489 params);
490}
491
492TEST_F(OBJExportRegressionTest, cubes_vertex_colors)
493{
495 params.export_colors = true;
496 params.export_normals = false;
497 params.export_uv = false;
498 params.export_materials = false;
499 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
500 "cubes_vertex_colors.blend",
501 "io_tests" SEP_STR "obj" SEP_STR "cubes_vertex_colors.obj",
502 "",
503 params);
504}
505
506TEST_F(OBJExportRegressionTest, cubes_with_textures_strip)
507{
510 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
511 "cubes_with_textures.blend",
512 "io_tests" SEP_STR "obj" SEP_STR "cubes_with_textures.obj",
513 "io_tests" SEP_STR "obj" SEP_STR "cubes_with_textures.mtl",
514 params);
515}
516
517TEST_F(OBJExportRegressionTest, cubes_with_textures_relative)
518{
521 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
522 "cubes_with_textures.blend",
523 "io_tests" SEP_STR "obj" SEP_STR "cubes_with_textures_rel.obj",
524 "io_tests" SEP_STR "obj" SEP_STR "cubes_with_textures_rel.mtl",
525 params);
526}
527
528TEST_F(OBJExportRegressionTest, suzanne_all_data)
529{
531 params.forward_axis = IO_AXIS_Y;
532 params.up_axis = IO_AXIS_Z;
533 params.export_materials = false;
534 params.export_smooth_groups = true;
535 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR
536 "suzanne_all_data.blend",
537 "io_tests" SEP_STR "obj" SEP_STR "suzanne_all_data.obj",
538 "",
539 params);
540}
541
542TEST_F(OBJExportRegressionTest, all_curves)
543{
545 params.export_materials = false;
546 compare_obj_export_to_golden("io_tests" SEP_STR "blend_scene" SEP_STR "all_curves.blend",
547 "io_tests" SEP_STR "obj" SEP_STR "all_curves.obj",
548 "",
549 params);
550}
551
552TEST_F(OBJExportRegressionTest, all_curves_as_nurbs)
553{
555 params.export_materials = false;
556 params.export_curves_as_nurbs = true;
557 compare_obj_export_to_golden("io_tests" SEP_STR "blend_scene" SEP_STR "all_curves.blend",
558 "io_tests" SEP_STR "obj" SEP_STR "all_curves_as_nurbs.obj",
559 "",
560 params);
561}
562
563TEST_F(OBJExportRegressionTest, all_objects)
564{
566 params.forward_axis = IO_AXIS_Y;
567 params.up_axis = IO_AXIS_Z;
568 params.export_smooth_groups = true;
569 params.export_colors = true;
570 compare_obj_export_to_golden("io_tests" SEP_STR "blend_scene" SEP_STR "all_objects.blend",
571 "io_tests" SEP_STR "obj" SEP_STR "all_objects.obj",
572 "io_tests" SEP_STR "obj" SEP_STR "all_objects.mtl",
573 params);
574}
575
576TEST_F(OBJExportRegressionTest, all_objects_mat_groups)
577{
579 params.forward_axis = IO_AXIS_Y;
580 params.up_axis = IO_AXIS_Z;
581 params.export_smooth_groups = true;
582 params.export_material_groups = true;
583 compare_obj_export_to_golden("io_tests" SEP_STR "blend_scene" SEP_STR "all_objects.blend",
584 "io_tests" SEP_STR "obj" SEP_STR "all_objects_mat_groups.obj",
585 "io_tests" SEP_STR "obj" SEP_STR "all_objects_mat_groups.mtl",
586 params);
587}
588
589TEST_F(OBJExportRegressionTest, materials_without_pbr)
590{
592 params.export_normals = false;
594 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "materials_pbr.blend",
595 "io_tests" SEP_STR "obj" SEP_STR "materials_without_pbr.obj",
596 "io_tests" SEP_STR "obj" SEP_STR "materials_without_pbr.mtl",
597 params);
598}
599
600TEST_F(OBJExportRegressionTest, materials_pbr)
601{
603 params.export_normals = false;
605 params.export_pbr_extensions = true;
606 compare_obj_export_to_golden("io_tests" SEP_STR "blend_geometry" SEP_STR "materials_pbr.blend",
607 "io_tests" SEP_STR "obj" SEP_STR "materials_pbr.obj",
608 "io_tests" SEP_STR "obj" SEP_STR "materials_pbr.mtl",
609 params);
610}
611
612} // namespace blender::io::obj
void BKE_tempdir_init(const char *userdir)
Definition appdir.cc:1197
const char * BKE_tempdir_base() ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL
Definition appdir.cc:1249
void BKE_tempdir_session_purge()
Definition appdir.cc:1254
const char * BKE_blender_version_string(void)
Definition blender.cc:143
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
File and directory operations.
int BLI_delete(const char *path, bool dir, bool recursive) ATTR_NONNULL()
void * BLI_file_read_text_as_mem(const char *filepath, size_t pad_bytes, size_t *r_size)
Definition storage.cc:524
void void void const char * BLI_path_basename(const char *path) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
#define FILE_MAX
void void BLI_path_split_dir_part(const char *filepath, char *dir, size_t dir_maxncpy) ATTR_NONNULL(1
char * STRNCPY(char(&dst)[N], const char *src)
Definition BLI_string.h:688
external readfile function prototypes.
eEvaluationMode
@ DAG_EVAL_VIEWPORT
@ IO_AXIS_Y
@ IO_AXIS_Z
@ PATH_REFERENCE_RELATIVE
@ PATH_REFERENCE_STRIP
BPy_StructRNA * depsgraph
virtual void depsgraph_create(eEvaluationMode depsgraph_evaluation_mode)
bool blendfile_load(const char *filepath)
std::string get_as_string() const
void compare_obj_export_to_golden(const std::string &blendfile, const std::string &golden_obj, const std::string &golden_mtl, OBJExportParams &params)
bool load_file_and_depsgraph(const std::string &filepath, const eEvaluationMode eval_mode=DAG_EVAL_VIEWPORT)
std::unique_ptr< OBJWriter > init_writer(const OBJExportParams &params, const std::string &out_filepath)
#define printf(...)
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
void MEM_freeN(void *vmemh)
Definition mallocn.cc:113
bool append_frame_to_filename(const char *filepath, const int frame, char r_filepath_with_frames[1024])
static bool strings_equal_after_first_lines(const std::string &a, const std::string &b)
TEST_F(OBJExportTest, filter_objects_curves_as_mesh)
TEST(obj_exporter_utils, append_negative_frame_to_filename)
constexpr bool save_failing_test_output
const std::string all_objects_file
static std::string read_temp_file_in_string(const std::string &file_path)
std::pair< Vector< std::unique_ptr< OBJMesh > >, Vector< std::unique_ptr< OBJCurve > > > filter_supported_objects(Depsgraph *depsgraph, const OBJExportParams &export_params)
void export_frame(Depsgraph *depsgraph, const OBJExportParams &export_params, const char *filepath)
void * BKE_tempdir_session
Definition stubs.c:38
i
Definition text_draw.cc:230
#define SEP_STR
Definition unit.cc:39