add_scene_3d_camera — Add a camera to a 3D scene.
add_scene_3d_camera adds a new camera to the 3D scene Scene3D and returns the index of this camera in CameraIndex. The camera parameters of the camera must be given in CameraParam. By default the new camera is located at the origin of the world coordinate system. The pose of the camera CameraIndex can be set with set_scene_3d_camera_pose.
Handle of the 3D scene.
Parameters of the new camera.
Number of elements: CameraParam == 8 || CameraParam == 10 || CameraParam == 12 || CameraParam == 14
Index of the new camera in the 3D scene.
add_scene_3d_camera returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.