Ref. Geometry >> Create >> Cylinder >> Fit Region
Step
- Execute Ref. Geometry >> Create >> Cylinder >> Fit Region command as follows:
1. Select faces or vertices to be fit to cylinder. ( See Select >> Entities >> Vertex / Face )
- 2. Select Ref. Geometry >> Create >> Cylinder >> Fit Region from the menu or click the corresponding icon from the Reference toolbar.
3. The following dialog may appear.
- Use Add Fitted Geometry option to best-fit a cylinder to the selected faces/vertices. Use Add Max. Bound Geometry option to create a maximum cylinder including all the selected faces/vertices. Use Add Min. Bound Geometry option to create a minimum cylinder which does not include all the selected faces/vertices. Use Remove Outlier option to fit a cylinder to the selected faces/vertices while excepting entities in the region out of standard deviation. Use Ref. Vector sets a given ref. vector as a initial guess for the vector of a primitive to be generated. Use Upper Bound Ref. Plane sets the position of a given ref. plane to the upper boundary of a primitive to be generated. Use Lower Bound Ref. Plane sets the position of a given ref. plane to the lower boundary of a primitive to be generated. Fix Axis sets the given ref. vector to a vector of a primitive to be generated. Fix Radius is used as a radius of a primitive to be generated.
- 4.Click Preview button and then click the Create button to create a cylinder.
Result
A cylinder is generated and the followings are printed out in the console window.
----------------------------------------
Result of Fitting Region
----------------------------------------
* Start Point of Axis : 29.62838, -16.00925, 14.10546
* End Point of Axis : 24.98542, -22.55217, 13.02853
* Length of Axis : 8.09485
* Normalized Axis Vector : -4.64296, -6.54292, -1.07693
* Radius : 8.04145
* Number of Data Points : 843
* Min Error : 0.00001
* Max Error : 0.26971
* RMS Error : 0.07572
* Standard Deviation : 0.07577
----------------------------------------