Measure Sphere

Description

Use this Step to fit a sphere from the surface data and calculate the sphere’s radius and center.

measure sphere demo

Workflow

The process of configuring this Step is shown below:

measure sphere 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 other parameters.

  4. Select the desired output items under Output. For an expandable output item, click ▶ and configure the Min and Max values to determine the acceptable range for the item.

  5. 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 sphere.

Otherwise, the Step will process surface data within the region when the feature region is used. At this point, the following parameters need to be set:

  • Feature Region Mode

    Determines whether to use the data within the feature region or the data outside the region to fit a sphere.

  • Feature Region

    See Feature Region for details on setting and adjusting a feature region.

Outlier Fraction

The percentage of outliers to be removed during circle fitting.

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 Min and Max values 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

Sphere Center X/Y/Z

The location of the center of sphere after fitting.

Radius

The radius of the sphere after fitting.

Standard Deviation

The standard deviation of the distance between the radius and the surface of the sphere.

Center of Sphere

The center sphere gained from fitting.

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-W3901

Error: The “Outlier Fraction” value must be a percentage between 0% and 100%. Please enter a valid value.

Solution: Make sure the parameter value is within 0–100%.

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.