Operators |
intersect_plane_object_model_3d — Intersect a 3D object model with a plane.
intersect_plane_object_model_3d( : : ObjectModel3D, Plane : ObjectModel3DIntersection)
intersect_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 Plane. 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 ObjectModel3DIntersection. 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_3d and queried with get_object_model_3d_params using the parameter 'lines' .
Handle of the 3D object model.
Pose of the plane.
Default value: [0,0,0,0,0,0,0]
Handle of the 3D object model that describes the intersection as a set of lines.
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_3d returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.
read_object_model_3d, select_points_object_model_3d
reduce_object_model_3d_by_view
3D Metrology
Operators |