Skip to content

3D Volume

Operator Function

Calculate the volume of the point cloud in a given region. Provides three volume measurement algorithms: calculating volume based on bounding box, contour integration, and slice integration.

Parameter Introduction

Input Parameters

ParameterRangeDefault ValueDescriptionIllustration
Input Image0-80IM number for image input

Calculation Parameters

ParameterRangeDefault ValueDescriptionImage
Use Region Parameterstrue/falsefalseIf enabled, use Region as input; if disabled, use Input Image as input
RegionSet the volume calculation region
AlgorithmBounding Box/Contour Integration/Slice IntegrationBounding BoxBounding Box: Calculate volume based on bounding box
Contour Integration: Calculate volume by integrating the Z-direction height of each point based on the input point cloud contour. Note: This algorithm requires input of ordered point cloud
Slice Integration: Calculate volume based on slice integration. (Contour Integration algorithm requires input of ordered point cloud)
Contour Integration
Slice Integration
Bounding Box TypeAxis-Aligned Bounding Box/Oriented Bounding BoxAxis-Aligned Bounding BoxAxis-Aligned Bounding Box: The boundaries of the bounding box are parallel or perpendicular to any coordinate axis. Its parameters are minimum x, y, z coordinates and maximum x, y, z coordinates. For rotating objects, the fit is not tight, and there is more redundant space.
Oriented Bounding Box: Can better fit the object. Parameters are center point coordinates, length, width, height, rotation Euler angles.
AABB vs OBB
Reference Height0.000When Algorithm is set to Bounding Box, the height of the reference plane needs to be setBounding Box
Number of Slice Contours1000Required when Algorithm is set to Slice Integration: The number of contours to be sliced. More contours result in more accurate volume calculation, but increasing the number will increase computational load. Adjust accordingly during use.
Slice DirectionX/Y/ZXRequired when Algorithm is set to Slice Integration: The normal direction of the cutting plane. Currently can be set to X, Y, and Z. The slice direction is the X direction.

Result Display

ParameterRangeDefault ValueDescriptionIllustration
Boxtrue/falsefalseBounding box of the object. If enabled, display in the image
Point Settrue/falsefalseTarget region point set. If enabled, display in the image

Output Parameters

NameTypeRangeDescription
Resultbooltrue/falsetrue for success
false for failure
Warningbooltrue/falsetrue indicates a warning
false indicates no warning
MessagestringOutput success, error, or warning messages. Empty if no error or warning.
TimefloatOperator execution time, unit: ms
volume_measurementfloatVolume measurement value
regionpointsetTarget region point set

Exception Troubleshooting

View the error code list for general error information and solutions.

No.Exception InformationCorresponding ParameterSolution
1Input value is {0}, invalid region typeRegion TypeOnly window2d, box, pointset supported
2Region is empty1. Check if input point cloud is empty
2. Check if ROI region selects point cloud
3. Check if bound pointset is empty
3Only ordered point cloud input supported in this modeContour integration mode only supports ordered point cloud
4Contour integration calculation failedCheck if input point cloud is empty
5Input x resolution is {0}, y resolution is {1}, invalid x or y direction resolutionx resolution, y resolutionOnly x resolution>0, y resolution>0 supported
6Input value is {0}, invalid slice directionSlice DirectionOnly slice directions X, Y supported
7Please increase x resolution or y resolution valuex resolution or y resolution >= point cloud point spacing
8Volume calculation failedCheck if number of slice contours is set greater than 0

Example Introduction

Engineering Design

  1. Select two Load 3D Point Cloud tools to load two point clouds for volume calculation.
  2. Select the Parallel Call Program tool to use Slice Volume Algorithm and Bounding Box Algorithm respectively to calculate the volumes of the two point clouds.
  3. In the Slice Volume Algorithm program, select 3D Region Operation, 3D Plane Fitting, and one 3D Volume tool. The 3D Region Operation and 3D Plane Fitting tools are used to adjust the point cloud to the zero plane, and the 3D Volume tool uses the Slice Integration algorithm to calculate the volume.
  4. In the Bounding Box Algorithm program, select 3D Region Operation, 3D Plane Fitting, and two 3D Volume tools. The 3D Region Operation and 3D Plane Fitting tools are used to adjust the point cloud to the zero plane, and the two 3D Volume tools are used to calculate Axis-Aligned Bounding Box volume and Oriented Bounding Box volume respectively.

Tool Usage

  1. Set the IM number of the input image.

  2. Set the parameters.

  3. Click Test to view the calibration matrix.

  4. If there are no issues, click Save. Run the operator in the run list, and then view the running results.

Local Image

AI-Vision, Making 3D Measurement Easier