Sets a material for the specified subentity.
eOk if successful or an appropriate error code in other case.
To remove the currently assigned material, set the matId parameter value to NULL.