Measure Cylinder

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Description

This Step is used to fit a cylinder from the surface data and calculate the cylinder’s radius, center point, tilt angle, etc.

measure cylinder demo

Workflow

The process of configuring this Step is shown below:

measure cylinder workflow
  1. Configure the input. Connect the Step ports in the graphical programming workspace or select the input under Input in the parameter configuration panel.

  2. Determine whether to use a feature region.

  3. Set the step size for downsampling.

  4. Set other parameters.

  5. Select the desired output items under Output. For an expandable output item, click ▶ and configure the Lower limit and Upper limit values to set the acceptable range.

  6. Run the Step and view output.

Parameters

Parameter Description

Use Feature Region

When unselected, the Step processes all of the surface data to fit the cylinder.

Otherwise, the Step only processes the surface data defined by the feature region(s).

  • Feature Region Mode

    This parameter determines whether the data within the feature region(s) or the data outside the feature region(s) will be used for fitting the cylinder.

  • Feature Region

    For more information on how to set and adjust the feature region, see Set the Feature Region.

  • Use Feature Region

    For more information on how to set and adjust the feature region, see Set the Feature Region.

Downsampling Step

This Step is used to downsample surface data before fitting a cylinder. The larger the value, the fewer data points involved in the calculation, and the processing speed is usually faster. Value range: 1 to 16. “1” indicates no downsampling. If the fitting speed is slow, increase the Step size appropriately to improve the processing speed.

Output Description

Select the output item(s) to add the output port(s) to the Step, and the corresponding data will be output after the Step is run. You can select the output according to the actual measurement requirements.

If you select an expandable output item, you should expand it by clicking ▶, and then set the Lower limit and Upper limitvalues to determine the acceptable range. If the output value falls within the acceptable range, the measurement item is judged as passing (OK), or else it is judged as failing (NG).

Output item Description

Radius

The radius of the fitted cylinder.

Center X/Y/Z

The location of the fitted cylinder’s center.

Axis–Z Angle

The angle between the axis of the fitted cylinder and the positive Z-axis.

Axis–X Angle

The angle between the axis of the fitted cylinder and the positive X-axis.

X/Y/Z-Component of Axis Vector

The x-, y-, and z-components of the axis vector of the fitted cylinder, respectively.

Center of Cylinder

The midpoint of the line connecting the centers of the upper and lower bases of the fitted cylinder. The output is a point with coordinate information.

Axis of Cylinder

The axis of the fitted cylinder, passing through the centers of its upper and lower bases. The output is a line with direction information.

Cylinder

Fit the obtained cylinder.

Troubleshooting

  • For common errors, see Error Code List.

  • If the error code is inconsistent with the error message, please contact Technical Support for help.

CV-W3801

Error: Not enough points are involved in fitting.

Solution: Adjust the feature region to include more data points.

CV-W3802

Error: The downsampling step value is outside of the valid range.

Solution: Input an integer between 1 and 16.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.