gen_cylinder_object_model_3dT_gen_cylinder_object_model_3dGenCylinderObjectModel3dGenCylinderObjectModel3dgen_cylinder_object_model_3d (算子)
名称
gen_cylinder_object_model_3dT_gen_cylinder_object_model_3dGenCylinderObjectModel3dGenCylinderObjectModel3dgen_cylinder_object_model_3d — 创建表示圆柱的三维对象模型。
签名
void GenCylinderObjectModel3d(const HTuple& Pose, const HTuple& Radius, const HTuple& MinExtent, const HTuple& MaxExtent, HTuple* ObjectModel3D)
static HObjectModel3DArray HObjectModel3D::GenCylinderObjectModel3d(const HPoseArray& Pose, const HTuple& Radius, const HTuple& MinExtent, const HTuple& MaxExtent)
void HObjectModel3D::GenCylinderObjectModel3d(const HPose& Pose, double Radius, double MinExtent, double MaxExtent)
static void HOperatorSet.GenCylinderObjectModel3d(HTuple pose, HTuple radius, HTuple minExtent, HTuple maxExtent, out HTuple objectModel3D)
static HObjectModel3D[] HObjectModel3D.GenCylinderObjectModel3d(HPose[] pose, HTuple radius, HTuple minExtent, HTuple maxExtent)
void HObjectModel3D.GenCylinderObjectModel3d(HPose pose, double radius, double minExtent, double maxExtent)
def gen_cylinder_object_model_3d(pose: Sequence[Union[int, float]], radius: MaybeSequence[float], min_extent: MaybeSequence[float], max_extent: MaybeSequence[float]) -> Sequence[HHandle]
def gen_cylinder_object_model_3d_s(pose: Sequence[Union[int, float]], radius: MaybeSequence[float], min_extent: MaybeSequence[float], max_extent: MaybeSequence[float]) -> HHandle
描述
gen_cylinder_object_model_3dgen_cylinder_object_model_3dGenCylinderObjectModel3dGenCylinderObjectModel3dGenCylinderObjectModel3dgen_cylinder_object_model_3d creates a cylinder-shaped 3D
primitive, i.e., a 3D object model that represents a cylinder. A
cylinder is described by its center and the direction of its axis in
PosePosePosePoseposepose and by its radius in RadiusRadiusRadiusRadiusradiusradius. The pose has the
origin on the rotation axis of the cylinder and is oriented such
that the z-axis is aligned with the main direction of the cylinder.
Additionally, the extensions of the cylinder are
given by MinExtentMinExtentMinExtentMinExtentminExtentmin_extent and MaxExtentMaxExtentMaxExtentMaxExtentmaxExtentmax_extent. MinExtentMinExtentMinExtentMinExtentminExtentmin_extent
and MaxExtentMaxExtentMaxExtentMaxExtentmaxExtentmax_extent represent the z-coordinates of the lowest and
highest points of the cylinder on the rotation axis. The handle of the
3D object model is returned by the parameter ObjectModel3DObjectModel3DObjectModel3DObjectModel3DobjectModel3Dobject_model_3d。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。
参数
PosePosePosePoseposepose (输入控制) pose(-array) → HPose, HTupleSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
The pose that describes the position and
orientation of the cylinder.
RadiusRadiusRadiusRadiusradiusradius (输入控制) number(-array) → HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)
The radius of the cylinder.
MinExtentMinExtentMinExtentMinExtentminExtentmin_extent (输入控制) number(-array) → HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)
Lowest z-coordinate of the cylinder in the
direction of the rotation axis.
MaxExtentMaxExtentMaxExtentMaxExtentmaxExtentmax_extent (输入控制) number(-array) → HTupleMaybeSequence[float]HTupleHtuple (real) (double) (double) (double)
Highest z-coordinate of the cylinder in the
direction of the rotation axis.
限制:
MinExtent < MaxExtent
ObjectModel3DObjectModel3DObjectModel3DObjectModel3DobjectModel3Dobject_model_3d (输出控制) object_model_3d(-array) → HObjectModel3D, HTupleSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the resulting 3D object model.
结果
gen_cylinder_object_model_3dgen_cylinder_object_model_3dGenCylinderObjectModel3dGenCylinderObjectModel3dGenCylinderObjectModel3dgen_cylinder_object_model_3d 在所有参数正确时返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的后继
get_object_model_3d_paramsget_object_model_3d_paramsGetObjectModel3dParamsGetObjectModel3dParamsGetObjectModel3dParamsget_object_model_3d_params,
sample_object_model_3dsample_object_model_3dSampleObjectModel3dSampleObjectModel3dSampleObjectModel3dsample_object_model_3d,
clear_object_model_3dclear_object_model_3dClearObjectModel3dClearObjectModel3dClearObjectModel3dclear_object_model_3d
另见
gen_sphere_object_model_3dgen_sphere_object_model_3dGenSphereObjectModel3dGenSphereObjectModel3dGenSphereObjectModel3dgen_sphere_object_model_3d,
gen_sphere_object_model_3d_centergen_sphere_object_model_3d_centerGenSphereObjectModel3dCenterGenSphereObjectModel3dCenterGenSphereObjectModel3dCentergen_sphere_object_model_3d_center,
gen_plane_object_model_3dgen_plane_object_model_3dGenPlaneObjectModel3dGenPlaneObjectModel3dGenPlaneObjectModel3dgen_plane_object_model_3d,
gen_box_object_model_3dgen_box_object_model_3dGenBoxObjectModel3dGenBoxObjectModel3dGenBoxObjectModel3dgen_box_object_model_3d
模块
三维计量