Skip to content

3D Line-Plane Perpendicularity

Operator Function

Calculate the geometric tolerance - line-plane perpendicularity
As shown in the figure below, using the direction vector of the datum axis as the normal vector of the tolerance-zone plane, take several sampling points on the measured plane, and compute their signed distances 𝑑1, 𝑑2, …, 𝑑n to the reference tolerance-zone plane. The perpendicularity is:
𝑑𝑚𝑎𝑥 − 𝑑𝑚𝑖𝑛
where
𝑑𝑚𝑎𝑥 = 𝑚𝑎𝑥(𝑑1, 𝑑2, …, 𝑑n)
𝑑𝑚𝑖𝑛 = min(𝑑1, 𝑑2, …, 𝑑n)

Parameters

Input Parameters

ParameterRangeDefaultDescriptionDiagram
Input Image0-80IM index of the input image

Calculation Parameters

ParameterRangeDefaultDescriptionDiagram
Actual PlanePlane-A point on the actual plane and its normal vector
Datum Axis3D Line-A point on the cylinder axis and its direction vector
Measurement Point Filejson file-Measurement point file on the measured plane

Result Display

ParameterRangeDefaultDescriptionDiagram
Actual Planetrue/falsefalseThe input actual plane; when enabled, displayed on the IM
Datum Axistrue/falsefalseThe input cylinder axis; when enabled, displayed on the IM
Tolerance-Zone Planetrue/falsefalseThe input tolerance zone, i.e. the plane passing through a point on the datum axis and perpendicular to the datum axis; when enabled, displayed on the IM
Intersection Pointstrue/falsefalseDisplay two sets of points: the input measurement points and the feet of perpendicular from the measurement points to the actual plane; when enabled, displayed on the IM
Lines Connecting Measurement Points and Their Feet on the Fitted Datum Planetrue/falsefalseThe lines connecting the feet of perpendicular from the input measurement points to the actual plane; when enabled, displayed on the IM
Perpendicularitytrue/falsefalseThe output parallelism; when enabled, displayed on the IM

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
distancefloat[]Distance from measurement points to the reference plane
perpendicularityfloatPerpendicularity
resultstringOK/NGWhether the perpendicularity is within range

Tip

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

Troubleshooting

No.Exception MessageCorresponding ParameterSolution
1Input 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
2The type of the input actual plane is {0}, an invalid plane typePlane TypeCheck whether the plane type is a plane
3The normal vector of the input plane is 0Check whether the plane normal vector is all zeros
4The minimum value of the input perpendicularity range is greater than the maximum, an invalid perpendicularity rangeSet the minimum of the perpendicularity range to be less than or equal to the maximum
5Parameter {0} cannot be emptyPathCheck whether the path is empty
6File {0} does not exist or cannot be accessedPathCheck whether the path is valid
7The input theoretical position point cloud is emptyCheck whether the theoretical position point json file is empty
8The type of the input datum axis is {0}, an invalid datum axis typeDatum Axis TypeCheck whether the datum axis type is a 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 Cylinder Fitting tool to fit the cylinder and obtain the cylinder axis.

  3. Select the 3D Square Probe tool to fit the datum line.

  4. Select the 3D Line-Plane Perpendicularity 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