intersect_plane_object_model_3dT_intersect_plane_object_model_3dIntersectPlaneObjectModel3dIntersectPlaneObjectModel3dintersect_plane_object_model_3d (算子)

名称

intersect_plane_object_model_3dT_intersect_plane_object_model_3dIntersectPlaneObjectModel3dIntersectPlaneObjectModel3dintersect_plane_object_model_3d — 将三维对象模型与平面相交。

签名

intersect_plane_object_model_3d( : : ObjectModel3D, Plane : ObjectModel3DIntersection)

Herror T_intersect_plane_object_model_3d(const Htuple ObjectModel3D, const Htuple Plane, Htuple* ObjectModel3DIntersection)

void IntersectPlaneObjectModel3d(const HTuple& ObjectModel3D, const HTuple& Plane, HTuple* ObjectModel3DIntersection)

static HObjectModel3DArray HObjectModel3D::IntersectPlaneObjectModel3d(const HObjectModel3DArray& ObjectModel3D, const HPoseArray& Plane)

HObjectModel3D HObjectModel3D::IntersectPlaneObjectModel3d(const HPose& Plane) const

static void HOperatorSet.IntersectPlaneObjectModel3d(HTuple objectModel3D, HTuple plane, out HTuple objectModel3DIntersection)

static HObjectModel3D[] HObjectModel3D.IntersectPlaneObjectModel3d(HObjectModel3D[] objectModel3D, HPose[] plane)

HObjectModel3D HObjectModel3D.IntersectPlaneObjectModel3d(HPose plane)

def intersect_plane_object_model_3d(object_model_3d: MaybeSequence[HHandle], plane: Sequence[Union[int, float]]) -> Sequence[HHandle]

def intersect_plane_object_model_3d_s(object_model_3d: MaybeSequence[HHandle], plane: Sequence[Union[int, float]]) -> HHandle

描述

intersect_plane_object_model_3dintersect_plane_object_model_3dIntersectPlaneObjectModel3dIntersectPlaneObjectModel3dIntersectPlaneObjectModel3dintersect_plane_object_model_3d intersects a 3D object model with a plane that is defined by the x-y plane of the pose that is specified with the parameter PlanePlanePlanePlaneplaneplane. The z-axis of the pose corresponds to the normal of the plane.

The result is a set of 3D points connected by lines that is returned as 3D object model in ObjectModel3DIntersectionObjectModel3DIntersectionObjectModel3DIntersectionObjectModel3DIntersectionobjectModel3DIntersectionobject_model_3dintersection. Every triangle that intersects with the plane creates two intersection points and a line between the two points. The resulting set of lines is coplanar.

The lines can be displayed with disp_object_model_3ddisp_object_model_3dDispObjectModel3dDispObjectModel3dDispObjectModel3ddisp_object_model_3d and queried with get_object_model_3d_paramsget_object_model_3d_paramsGetObjectModel3dParamsGetObjectModel3dParamsGetObjectModel3dParamsget_object_model_3d_params using the parameter 'lines'"lines""lines""lines""lines""lines".

执行信息

参数

ObjectModel3DObjectModel3DObjectModel3DObjectModel3DobjectModel3Dobject_model_3d (输入控制)  object_model_3d(-array) HObjectModel3D, HTupleMaybeSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)

3D 对象模型的句柄。

PlanePlanePlanePlaneplaneplane (输入控制)  pose(-array) HPose, HTupleSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Pose of the plane.

默认值: [0,0,0,0,0,0,0]

ObjectModel3DIntersectionObjectModel3DIntersectionObjectModel3DIntersectionObjectModel3DIntersectionobjectModel3DIntersectionobject_model_3dintersection (输出控制)  object_model_3d(-array) HObjectModel3D, HTupleSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the 3D object model that describes the intersection as a set of lines.

示例(HDevelop)

gen_object_model_3d_from_points (rand(20)-0.5, rand(20)-0.5,\
                                 rand(20)-0.5, ObjectModel3D)
convex_hull_object_model_3d (ObjectModel3D, ObjectModel3DConvexHull)
intersect_plane_object_model_3d (ObjectModel3DConvexHull, [0,0,0,0,0,0,0], \
                                 ObjectModel3DIntersection)
dev_get_window (WindowHandle)
visualize_object_model_3d (WindowHandle, [ObjectModel3DIntersection, \
                           ObjectModel3DConvexHull], [], [], \
                           ['alpha_1'], [0.5], [], [], [], PoseOut)

结果

intersect_plane_object_model_3dintersect_plane_object_model_3dIntersectPlaneObjectModel3dIntersectPlaneObjectModel3dIntersectPlaneObjectModel3dintersect_plane_object_model_3d 在所有参数正确时返回 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

read_object_model_3dread_object_model_3dReadObjectModel3dReadObjectModel3dReadObjectModel3dread_object_model_3d, select_points_object_model_3dselect_points_object_model_3dSelectPointsObjectModel3dSelectPointsObjectModel3dSelectPointsObjectModel3dselect_points_object_model_3d

可能的后继

connection_object_model_3dconnection_object_model_3dConnectionObjectModel3dConnectionObjectModel3dConnectionObjectModel3dconnection_object_model_3d

另见

reduce_object_model_3d_by_viewreduce_object_model_3d_by_viewReduceObjectModel3dByViewReduceObjectModel3dByViewReduceObjectModel3dByViewreduce_object_model_3d_by_view

模块

三维计量