Blender V4.3
blender::io::obj::OBJExportRegressionTest Class Reference

Inherits blender::io::obj::OBJExportTest.

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::OBJExportTest
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 Depsgraph * depsgraph = nullptr
 

Detailed Description

Definition at line 272 of file obj_exporter_tests.cc.

Member Function Documentation

◆ compare_obj_export_to_golden()

void blender::io::obj::OBJExportRegressionTest::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 281 of file obj_exporter_tests.cc.

References BlendfileLoadingBaseTest::bfile, BKE_tempdir_base(), BKE_tempdir_init(), BLI_delete(), BLI_path_basename(), BLI_path_split_dir_part(), BlendfileLoadingBaseTest::depsgraph, blender::io::obj::export_frame(), Main::filepath, blender::io::obj::OBJExportTest::load_file_and_depsgraph(), BlendFileData::main, params, printf, blender::io::obj::read_temp_file_in_string(), blender::io::obj::save_failing_test_output, SEP_STR, blender::io::obj::strings_equal_after_first_lines(), and STRNCPY.


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