openalea.phenomenal.segmentation.plane_interception.intercept_points_from_src_point_with_plane_equation#

openalea.phenomenal.segmentation.plane_interception.intercept_points_from_src_point_with_plane_equation(points, src_point, plane_equation, distance_from_plane, distance_from_src_point=None)[source]#

Intercept the points who’s the distance from the plane (generate by plane_equation) are equal or inferior to the distance_from_plane. If distance_from_src_point is not None, the intercept points are also the points who’s the distance from the src_point are equal or inferior to the distance_from_src_point.

If points_graph is not None, points return are the points in the same connected component that src_point.

Parameters:
  • points (numpy.ndarray) – Array containing x,y, z position of each point.

  • src_point (tuple) – Point source.

  • plane_equation (tuple) – Element of an equation

  • distance_from_plane (float) – The maximum distance from a plane.

  • distance_from_src_point (float) – The distance from the source point

Returns:

closest_voxel – the closest voxels.

Return type:

tuple