Skip to content

3D Line-Plane Parallelism

Operator Function

Calculate the geometric tolerance - line-plane parallelism

As shown in the figure below, compute the perpendicular distance 𝑑1, 𝑑2, …, 𝑑n from each measurement point on the measured plane to the datum axis. The parallelism 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 Line3D Line-A point on the datum line and its direction vector
Measurement Point Filejson file-Measurement point file on the measured plane
Use Region Parametertrue/falsefalseWhen enabled, use Region as input; when disabled, use Input Image as input
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
Auxiliary Vector3D Vector-A vector not parallel to the line, used to assist in obtaining the normal vector

Result Display

ParameterRangeDefaultDescriptionDiagram
Actual Planetrue/falsefalseThe input actual plane; when enabled, displayed on the IM
Datum Linetrue/falsefalseThe input datum line; 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
Parallelismtrue/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
parallelismfloatParallelism
resultstringOK/NGWhether the parallelism 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 parallelism range is greater than the maximum, an invalid parallelism rangeSet the minimum of the parallelism 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 line is {0}, an invalid datum line typeDatum Line TypeCheck whether the datum line type is a 3D Line
9The input region type is {0}, an invalid region typeRegion TypeCheck whether the region type is one of 2D Window / 2D Circular Window / 2D Polygon Window / Box / Cylinder Box / Rotated Box / Point Set
10The 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
11The input region point cloud is empty1. Check whether the selection is empty
2. Check whether the point set is empty

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 Square Probe tool to fit the actual plane.

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

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