Rectangle3D
The Rectangle3D 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 2D rectangle 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 Rectangle3D structure containing the settings of the fixtured rectangle.
The Rectangle3D function has the following syntax:
Rectangle3D(PointCloud A point cloud is a 3D structure that consists of the data points collected by a 3D vision system during acquisition.,Fixture3D,ExternalFixture,Rectangle3D,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. |
||||||||||||||||
|
Rectangle3D |
Specifies the dimensions, offset and angle of the function's 3D rectangle. It is offset from the Fixture3D origin in the following format with the following arguments: {SizeX, SizeY, X, Y, Z, Rotation, Tilt, TiltDirection}
|
||||||||||||||||
| Show |
Selects the type of graphics to overlay on the image.
|
|
Returns |
A Rectangle3D structure containing the parameters of the configured rectangle, or #ERR if any parameter has been configured incorrectly. |
||||||||||||||||||
|
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 |
| GetRotation(Rectangle3D) | Returns the rotation of the Z-axis in degrees, also known as the in-plane rotation. |
| GetSizeX(Rectangle3D) | Returns the X-axis size of the rectangle. |
| GetSizeY(Rectangle3D) | Returns the Y-axis size of the rectangle. |
| GetTilt(Rectangle3D) | Returns the tilt angle of the Rectangle3D structure in degrees on the Z-axis. |
| GetTiltDirection(Rectangle3D) | Returns the tilt direction angle of the specified Rectangle3D structure in degrees. The angle is measured in the X-Y plane of the original reference coordinate system, and specifies the direction for the projection of the tilted Z-axis onto that plane. |
| GetX(Rectangle3D) | Returns the X-axis coordinate of the rectangle's center point. |
| GetY(Rectangle3D) | Returns the Y-axis coordinate of the rectangle's center point. |
| GetZ(Rectangle3D) | Returns the Z-axis coordinate of the rectangle's center point. |