Aufgrund von Umarbeiten des s3 Storage wird es in GitLab, in nächster Zeit, mögliche Performance-Einbußen geben. Näheres dazu unter: https://maintenance.itc.rwth-aachen.de/ticket/status/messages/43/show_ticket/6670

Renaming scene create function to comply with VA iface

parent c3d31333
......@@ -1071,21 +1071,21 @@ void get_directivity_infos( int nlhs, mxArray *plhs[], int nrhs, const mxArray *
plhs[ 0 ] = pCell;
}
REGISTER_PUBLIC_FUNCTION( create_scene_from_file, "Creates a scene from a file resource", "Note: this is a loose method with no clear definition. It may be interpreted differently among renderers." );
DECLARE_FUNCTION_REQUIRED_INARG( create_scene_from_file, file_path, "string", "File path" );
DECLARE_FUNCTION_OPTIONAL_INARG( create_scene_from_file, scene_name, "string", "Scene name", "''" );
DECLARE_FUNCTION_OUTARG( create_scene_from_file, scene_id, "string", "Scene identifier" );
void create_scene_from_file( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
REGISTER_PUBLIC_FUNCTION( create_scene, "Creates a scene from a file resource", "Note: this is a loose method with no clear definition. It may be interpreted differently among renderers." );
DECLARE_FUNCTION_REQUIRED_INARG( create_scene, params, "string", "Parameter struct" );
DECLARE_FUNCTION_OPTIONAL_INARG( create_scene, scene_name, "string", "Scene name", "''" );
DECLARE_FUNCTION_OUTARG( create_scene, scene_id, "string", "Scene identifier" );
void create_scene( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] )
{
REQUIRE_INPUT_ARGS( 3 );
ConnectionHandle hHandle = GetConnectionHandle( prhs[ 0 ] );
CVAMatlabConnection* pConnection = g_vpConnections[ hHandle ];
std::string sFilePath = matlabGetString( prhs[ 1 ], "file_path" );
std::string sSceneName = matlabGetString( prhs[ 2 ], "scene_name" );
CVAStruct oParams = matlabGetStruct( prhs[ 1 ], "params" );
std::string sName = matlabGetString( prhs[ 2 ], "name" );
std::string sID = pConnection->pCoreInterface->CreateSceneFromFile( sFilePath, sSceneName );
std::string sID = pConnection->pCoreInterface->CreateScene( oParams, sName );
plhs[ 0 ] = mxCreateString( sID.c_str() );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment