Calculate Size by Center-to-Line Distance

Function: Calculate the center of the input point cloud and use the distance from the point cloud center to four straight lines to calculate the bounding box size.

Input Parameters:

Name Type Valid Range Default Value Meaning

Pointcloud

XYZPoints

None

None

A point cloud, which requires only one point cloud, is used to calculate the center point, which can be the result of the merging of the fitting lines, or the point cloud before the fitting of the lines

A list of straight-line equation parameters

List

None

None

A list of straight-line equation parameters, with each element representing a point on the straight-fitting line, and a direction vector of the straight-line[point.x point.y point.z direction.x direction.y direction.z]

Straight point cloud

XYZPoints

None

None

A straight line point cloud, consisting of four point clouds, representing four fitted straight lines

Output Parameters:

Name Type Valid Range Default Value Meaning

Bounding box size

List

N/A

None

Bounding box size, representing the length and width of the bounding box

Parameter Settings:

Name Type Valid Range Default Value Meaning

Center point type

String

['Point cloud mean', 'Point cloud median']

Point cloud mean

Returns the type of the center of the bounding box in the result. The point cloud mean refers to the center mean of the calculated bounding box point cloud. The median of the point cloud returns the median of the calculated bounding box point cloud. The center of the bounding box indicates the center of the calculated point cloud bounding box.

Distance calculation method

String

['Distance from point to line', 'Triangle area perimeter calculation for height']

Distance from point to line

The distance from the point to the straight line is calculated directly using the straight line equation and the point, and the perimeter of the triangle area is calculated using the triangle area and perimeter of the point and the two ends of the straight line to calculate the height