Blender  V3.3
Public Member Functions | List of all members
blender::io::obj::obj_exporter_regression_test Class Reference
Inheritance diagram for blender::io::obj::obj_exporter_regression_test:
blender::io::obj::obj_exporter_test BlendfileLoadingBaseTest

Public Member Functions

void compare_obj_export_to_golden (const std::string &blendfile, const std::string &golden_obj, const std::string &golden_mtl, OBJExportParams &params)
 
- Public Member Functions inherited from blender::io::obj::obj_exporter_test
bool load_file_and_depsgraph (const std::string &filepath, const eEvaluationMode eval_mode=DAG_EVAL_VIEWPORT)
 

Additional Inherited Members

- Static Public Member Functions inherited from BlendfileLoadingBaseTest
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
- Protected Member Functions inherited from BlendfileLoadingBaseTest
virtual void TearDown ()
 
bool blendfile_load (const char *filepath)
 
void blendfile_free ()
 
virtual void depsgraph_create (eEvaluationMode depsgraph_evaluation_mode)
 
virtual void depsgraph_free ()
 
- Protected Attributes inherited from BlendfileLoadingBaseTest
struct BlendFileDatabfile = nullptr
 
struct Depsgraphdepsgraph = nullptr
 

Detailed Description

Definition at line 258 of file obj_exporter_tests.cc.

Member Function Documentation

◆ compare_obj_export_to_golden()

void blender::io::obj::obj_exporter_regression_test::compare_obj_export_to_golden ( const std::string &  blendfile,
const std::string &  golden_obj,
const std::string &  golden_mtl,
OBJExportParams params 
)
inline

Export the given blend file with the given parameters and test to see if it matches a golden file (ignoring any difference in Blender version number).

Parameters
blendfileinput, relative to "tests" directory.
golden_objexpected output, relative to "tests" directory.
paramsthe parameters to be used for export.

Definition at line 267 of file obj_exporter_tests.cc.

References BlendfileLoadingBaseTest::bfile, BKE_tempdir_base(), BKE_tempdir_init(), BLI_delete(), BLI_path_basename(), BLI_split_dir_part(), BlendfileLoadingBaseTest::depsgraph, blender::io::obj::export_frame(), FILE_MAX, Main::filepath, blender::io::obj::obj_exporter_test::load_file_and_depsgraph(), BlendFileData::main, params, PATH_MAX, blender::io::obj::read_temp_file_in_string(), blender::io::obj::save_failing_test_output, and blender::io::obj::strings_equal_after_first_lines().


The documentation for this class was generated from the following file: