|
Blender V5.0
|
Inherits testing::Test.
Public Member Functions | |
| void | write_curves (const Span< std::unique_ptr< IOBJCurve > > curves, OBJExportParams params) |
| void | write_curves (const std::unique_ptr< IOBJCurve > &curve, OBJExportParams params) |
| void | write_curves (const bke::CurvesGeometry &curve, OBJExportParams params) |
| Vector< bke::GeometrySet > | read_curves (OBJImportParams params) |
| void | run_nurbs_test (const Span< float3 > points, const int8_t order, const KnotsMode mode, const bool cyclic, bke::CurvesGeometry &src_curve, const bke::CurvesGeometry *&result_curve, Span< float3 > expected_points=Span< float3 >(), const KnotsMode *expected_mode=nullptr, const bool *expected_cyclic=nullptr) |
Static Public Member Functions | |
| static void | SetUpTestSuite () |
| static void | TearDownTestSuite () |
| static bke::CurvesGeometry | create_curves (Span< float3 > points, bool cyclic) |
| static bke::CurvesGeometry | create_rational_nurbs (Span< float3 > points, Span< float > weights, bool cyclic, int8_t order, KnotsMode mode) |
| static bke::CurvesGeometry | create_nurbs (Span< float3 > points, bool cyclic, int8_t order, KnotsMode mode) |
Definition at line 40 of file obj_nurbs_io_tests.cc.
|
inlinestatic |
Definition at line 81 of file obj_nurbs_io_tests.cc.
References blender::bke::CurvesGeometry::cyclic_for_write(), blender::bke::CurvesGeometry::offsets_for_write(), blender::bke::CurvesGeometry::positions_for_write(), and blender::Span< T >::size().
Referenced by create_nurbs(), and create_rational_nurbs().
|
inlinestatic |
Definition at line 102 of file obj_nurbs_io_tests.cc.
References create_curves(), MutableSpan< T >::fill(), blender::bke::CurvesGeometry::nurbs_knots_modes_for_write(), blender::bke::CurvesGeometry::nurbs_orders_for_write(), and blender::bke::CurvesGeometry::nurbs_weights_for_write().
Referenced by run_nurbs_test().
|
inline |
Definition at line 74 of file obj_nurbs_io_tests.cc.
References blender::io::obj::importer_geometry(), and params.
Referenced by run_nurbs_test().
|
inline |
Definition at line 115 of file obj_nurbs_io_tests.cc.
References BKE_tempdir_base(), BKE_tempdir_init(), BLI_path_basename(), create_nurbs(), CurvesGeometry::custom_knots, blender::bke::CurvesGeometry::cyclic(), blender::Span< T >::data(), blender::io::obj::default_export_params(), blender::io::obj::default_import_params(), e, EXPECT_EQ(), blender::bke::CurvesGeometry::nurbs_knots_modes(), blender::bke::CurvesGeometry::nurbs_orders(), blender::bke::CurvesGeometry::positions(), read_curves(), result, blender::Span< T >::size(), and write_curves().
|
inlinestatic |
Definition at line 42 of file obj_nurbs_io_tests.cc.
References BKE_idtype_init(), and CLG_init().
|
inlinestatic |
Definition at line 51 of file obj_nurbs_io_tests.cc.
References CLG_exit().
|
inline |
Definition at line 67 of file obj_nurbs_io_tests.cc.
References blender::MatBase< float, 4, 4 >::identity(), params, and write_curves().
|
inline |
Definition at line 56 of file obj_nurbs_io_tests.cc.
References blender::io::obj::export_objects(), and params.
Referenced by run_nurbs_test(), write_curves(), and write_curves().
|
inline |
Definition at line 61 of file obj_nurbs_io_tests.cc.
References params, and write_curves().