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