Line3D
The Line3D function Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. allows you to create a fixtured 3D line segment in the point cloud A point cloud is a 3D structure that consists of the data points collected by a 3D vision system during acquisition..
It returns a Line3D structure containing the settings of the fixtured 3D line segment.
The Line3D function has the following syntax:
Line3D(PointCloud A point cloud is a 3D structure that consists of the data points collected by a 3D vision system during acquisition.,Fixture3D,ExternalFixture,Line3D,Show)
| Parameter | Description | ||||||||||||
|
PointCloud |
Reference to a cell containing a point cloud. The default value is $A$0. |
||||||||||||
| Fixture3D |
Specifies the point cloud coordinate system in which the 3D fixture A fixture is a coordinate location on the image that keeps the tool in the place determined by the fixture. is defined. It is offset from the PointCloud origin in the following format with the following arguments: {X, Y, Z, Rotation, Tilt, TiltDirection}
Note: The Fixture3D parameter is only available if you set External Fixture to 0.
Note: You can use the Fixture3D parameter to set the ROI fixture.
|
||||||||||||
| External Fixture |
Specifies a reference to a Fixture3D structure defined in another cell. The function uses the referenced cell as the fixture of the function. Set to 0 (OFF) to use the internal fixture of the function instead. |
||||||||||||
|
Line3D |
Specifies the offsets of the 3D line to configure. It is offset from the Fixture3D origin in the following format with the following arguments: {X0, Y0, Z0, X1, Y1, Z1}
|
||||||||||||
| Show |
Selects the type of graphics to overlay on the image.
|
|
Returns |
A Line3D data structure as the projected 3D line, or #ERR if any of the input parameters are invalid. |
||||||||||||||
|
Results |
When initially inserted into a cell, the following functions are automatically inserted into the spreadsheet to create a result table.
|
The following Structures 3D Vision Data Access functions are automatically inserted into the spreadsheet to create the result table:
| Function | Description |
| GetX(Line3D, index) | Returns the X-axis coordinate of the 3D line point specified with the index. An index value of 0 indicates the first endpoint of the line, while a value of 1 indicates its second endpoint. |
| GetY(Line3D, index) | Returns the Y-axis coordinate of the 3D line point specified with the index. An index value of 0 indicates the first endpoint of the line, while a value of 1 indicates its second endpoint. |
| GetZ(Line3D, index) | Returns the Z-axis coordinate of the 3D line point specified with the index. An index value of 0 indicates the first endpoint of the line, while a value of 1 indicates its second endpoint. |