Skip to content

3D Intersection of Line and Point Cloud

Operator Function

Input a point cloud and a line, set the point cloud reconstruction parameters, and compute the intersection point of the point cloud and the 3D line.

Parameters

Input Parameters

ParameterRangeDefaultDescriptionDiagram
Input Image0-80IM index of the input image
3D DatumYou can select Datum by binding
XX coordinate value of the 3D datum parameter; you can set X by binding
YY coordinate value of the 3D datum parameter; you can set Y by binding
ZZ coordinate value of the 3D datum parameter; you can set Z by binding
X-Axis Angle-10000000000.000-10000000000.000X-axis angle value of the 3D datum parameter; you can set X-Axis Angle by binding
Y-Axis Angle-10000000000.000-10000000000.000Y-axis angle value of the 3D datum parameter; you can set Y-Axis Angle by binding
Z-Axis Angle-10000000000.000-10000000000.000Z-axis angle value of the 3D datum parameter; you can set Z-Axis Angle by binding

Calculation Parameters

ParameterRangeDefaultDescriptionDiagram
Region2D Window / 2D Circular Window / 2D Polygon Window / Box / Cylinder Box / Rotated Box / Point Set (binding only)BoxManually select a suitable ROI region
You can select an existing ROI region by binding
Target3D Line3D LineInput 3D line parameters
Search Radius0-2002.500Set the sphere radius used to determine the k-nearest neighborhood
This value may need adjustment according to the density and distribution of the point cloud. For example, for sparser point clouds, a larger search radius may be needed
Number of Neighbors1-10050Set the maximum number of neighbors for normal estimation of the weld point cloud
A larger value may improve the robustness of normal estimation, especially when the point cloud is sparse or irregular. However, an excessively large value may also increase the computational burden and introduce unnecessary noise. A smaller value may improve computational efficiency but, in some cases, lead to inaccurate normal estimation
Neighbor Distance Multiplier0-502.500Dynamically adjust the maximum search distance for each sample point; the larger this value, the larger the maximum search distance for the final sample points.
When set to a larger value, the search radius increases, meaning the algorithm considers more neighboring points to construct triangles, which may be beneficial in sparser regions of the point cloud. However, if set too large, it may cause over-connection and produce inaccurate triangles.
When set to a smaller value, the search radius decreases and the algorithm considers fewer neighboring points. This may be beneficial in denser regions of the point cloud or when finer reconstruction is needed. However, if set too small, it may miss some points that should be connected, resulting in an incomplete triangular mesh.

Result Display

ParameterRangeDefaultDescriptionDiagram
Pointtrue/falsefalseIntersection point; when enabled, displayed in the image
Linetrue/falsefalseThe input line; when enabled, displayed in the image
ROI Point Settrue/falsefalseOnly effective when Use Region Parameter is checked; the region point set selected by the ROI; when enabled, displayed in the image

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates a warning
false indicates none
MessagestringOutput success, error, or warning message; empty if no error or warning
TimefloatOperator execution time, unit: ms
pointpoint3dIntersection point coordinates
Note: When the input is an array, all surface areas measured from the arrays will form an array.

Tip

For more details on parameter types, please refer to Type Definition

Troubleshooting

No.Exception MessageCorresponding ParameterSolution
1The input region type is {0}, an invalid region typeRegion TypeThe region input type is one of 2D Window / 2D Circular Window / 2D Polygon Window / Box / Cylinder Box / Rotated Box / Point Set
2The region is empty1. Check each region for any empty selection
2. Check each point set for any empty point set
3Input point cloud is emptyConfirm whether the IM contains valid points. If no valid point exists, load the point cloud or switch to an IM with valid points
4The number of polygon vertices is less than 3, cannot form a polygonAdd 2D polygon window vertices so that the number of vertices is at least three
5The point cloud patch reconstructed from the input parameters is emptyModify the point cloud reconstruction parameters: increase the search radius and the neighbor distance multiplier
6The currently reconstructed point cloud has no intersection with the lineThe point cloud and the line do not intersect, or the reconstruction result is inaccurate, causing no intersection between the line and the reconstructed point cloud
7The type of the input line is {0}, an invalid line typeLine TypeThe input line type is "3D Line"

Examples

Engineering Setup

  1. Select the Load Point Cloud tool to load the 3D point cloud to be processed into IM0;

  2. Select the 3D Intersection of Line and Point Cloud tool.

Tool Usage

  1. Select the input image to be operated on; the image index must match the IM index of the image in the project.

  2. Either disable the use-region parameter, or enable the region and select the region type as Box, then move the box to the position to be measured so that it encloses the point cloud to be measured.

Usage Tips

1. Drag or scale the box via the ROI controller on the image window;
2. Directly modify the start or end coordinates of the box in the calculation parameters to adjust the box position and size
  1. Set the parameters.

  2. Check the items to be displayed in the Result Display panel.

  3. Click Test to check whether the image window and parameters meet expectations.

  4. After confirming there are no problems, click Save, then run the operator in the run list to view the running result in the corresponding IM.

Local ImageLocal Image

Vision Studio