add_scene_3d_cameraT_add_scene_3d_cameraAddScene3dCameraAddScene3dCameraadd_scene_3d_camera (算子)
名称
add_scene_3d_cameraT_add_scene_3d_cameraAddScene3dCameraAddScene3dCameraadd_scene_3d_camera — 将相机添加到三维场景中。
签名
描述
add_scene_3d_cameraadd_scene_3d_cameraAddScene3dCameraAddScene3dCameraAddScene3dCameraadd_scene_3d_camera adds a new camera to the 3D scene
Scene3DScene3DScene3DScene3Dscene3Dscene_3d and returns the index of this camera in
CameraIndexCameraIndexCameraIndexCameraIndexcameraIndexcamera_index. The camera parameters of the camera must be
given in CameraParamCameraParamCameraParamCameraParamcameraParamcamera_param. By default the new camera is located
at the origin of the world coordinate system. The pose of the camera
CameraIndexCameraIndexCameraIndexCameraIndexcameraIndexcamera_index can be set with set_scene_3d_camera_poseset_scene_3d_camera_poseSetScene3dCameraPoseSetScene3dCameraPoseSetScene3dCameraPoseset_scene_3d_camera_pose.
注意
Cameras with hypercentric lenses are not supported.
For displaying large faces (or primitives) with a non-zero distortion
in CameraParamCameraParamCameraParamCameraParamcameraParamcamera_param, note that the distortion is only applied to the
points of the model. In the projection, these points are subsequently
connected by straight lines. For a good approximation of the distorted
lines, please use a triangulation with sufficiently small triangles.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
Scene3DScene3DScene3DScene3Dscene3Dscene_3d (输入控制) scene_3d → HScene3D, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the 3D scene.
CameraParamCameraParamCameraParamCameraParamcameraParamcamera_param (输入控制) campar → HCamPar, HTupleSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Parameters of the new camera.
CameraIndexCameraIndexCameraIndexCameraIndexcameraIndexcamera_index (输出控制) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Index of the new camera in the 3D scene.
结果
add_scene_3d_cameraadd_scene_3d_cameraAddScene3dCameraAddScene3dCameraAddScene3dCameraadd_scene_3d_camera returns 2 (
H_MSG_TRUE)
if all parameters are
correct. If necessary, an exception is raised.
可能的前趋
create_scene_3dcreate_scene_3dCreateScene3dCreateScene3dCreateScene3dcreate_scene_3d
可能的后继
set_scene_3d_camera_poseset_scene_3d_camera_poseSetScene3dCameraPoseSetScene3dCameraPoseSetScene3dCameraPoseset_scene_3d_camera_pose,
display_scene_3ddisplay_scene_3dDisplayScene3dDisplayScene3dDisplayScene3ddisplay_scene_3d
模块
三维计量