🟠 Calculate Size by Distance from Center to Lines
Function Description
The operator calculates bounding box length and width through geometric methods.
Its core logic is:
-
First, calculate a center point based on a given main point cloud.
-
Then, calculate the perpendicular distance from this center point to the four input lines.
-
Finally, the operator assumes these four lines form the four edges of a rectangle, and obtains the length and width of the rectangle by adding opposite distances (i.e., adding the two largest distances and adding the two smallest distances).
Usage Scenarios
Mainly applied to scenarios where bounding box calculation of point cloud outer bounding box has deviations, to obtain more precise bounding box edge lengths.
Input Output
Input |
Point cloud: Point cloud used to calculate the center point. Line equation parameter list: A list containing four line models. Line point cloud: A point cloud list containing all points on the four lines. This input is only required when the parameter distance calculation method is set to "Calculate height using triangle area and perimeter". |
Output |
Bounding box size: Outputs a list containing two elements [Size1, Size2], representing the calculated bounding box length and width. |
Parameter Description
|
This operator has two versions:
Both have identical core functionality and parameters, differing only in the type of point cloud data they process. |
Center Point Type
Parameter Description |
Defines the method for calculating the center point from the input "point cloud". |
Parameter Adjustment |
|
Distance Calculation Method
Parameter Description |
Defines the mathematical method used to calculate the distance from the center point to each line. |
Parameter Adjustment |
|