|
Blender V4.3
|
Inherits BlendfileLoadingBaseTest.
Public Member Functions | |
| bool | load_file_and_depsgraph (const std::string &filepath) |
Protected Member Functions | |
| STLExportTest () | |
| void | SetUp () override |
| void | TearDown () override |
| void | compare_to_golden (const std::string &blendfile, const std::string &golden_stl) |
Protected Member Functions inherited from BlendfileLoadingBaseTest | |
| bool | blendfile_load (const char *filepath) |
| void | blendfile_free () |
| virtual void | depsgraph_create (eEvaluationMode depsgraph_evaluation_mode) |
| virtual void | depsgraph_free () |
Static Protected Member Functions | |
| static std::string | get_temp_filename (const std::string &filename) |
Protected Attributes | |
| STLExportParams | _params |
Protected Attributes inherited from BlendfileLoadingBaseTest | |
| struct BlendFileData * | bfile = nullptr |
| struct Depsgraph * | depsgraph = nullptr |
Additional Inherited Members | |
Static Public Member Functions inherited from BlendfileLoadingBaseTest | |
| static void | SetUpTestCase () |
| static void | TearDownTestCase () |
Definition at line 39 of file stl_exporter_tests.cc.
|
inlineprotected |
Definition at line 51 of file stl_exporter_tests.cc.
References _params, STLExportParams::apply_modifiers, STLExportParams::ascii_format, STLExportParams::forward_axis, STLExportParams::global_scale, IO_AXIS_Y, IO_AXIS_Z, and STLExportParams::up_axis.
|
inlineprotected |
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).
| blendfile | input, relative to "tests" directory. |
| golden_obj | expected output, relative to "tests" directory. |
| params | the parameters to be used for export. |
Definition at line 84 of file stl_exporter_tests.cc.
References _params, BLI_delete(), BLI_path_basename(), BlendfileLoadingBaseTest::depsgraph, blender::io::stl::export_frame(), STLExportParams::filepath, get_temp_filename(), load_file_and_depsgraph(), printf, blender::io::stl::read_temp_file_in_string(), blender::io::stl::save_failing_test_output, SEP_STR, and STRNCPY.
|
inlinestaticprotected |
Definition at line 72 of file stl_exporter_tests.cc.
References BKE_tempdir_base(), and SEP_STR.
Referenced by compare_to_golden().
|
inline |
Definition at line 41 of file stl_exporter_tests.cc.
References BlendfileLoadingBaseTest::blendfile_load(), DAG_EVAL_VIEWPORT, and BlendfileLoadingBaseTest::depsgraph_create().
Referenced by compare_to_golden().
|
inlineoverrideprotected |
Definition at line 60 of file stl_exporter_tests.cc.
References BKE_tempdir_init().
|
inlineoverrideprotectedvirtual |
Reimplemented from BlendfileLoadingBaseTest.
Definition at line 66 of file stl_exporter_tests.cc.
References BKE_tempdir_session_purge(), and BlendfileLoadingBaseTest::TearDown().
|
protected |
Definition at line 107 of file stl_exporter_tests.cc.
Referenced by compare_to_golden(), and STLExportTest().