Ref. Geometry >> Create >> Vector >> Fit Region
Step
Execute Ref. Geometry >> Create >> Vector >> Fit Region command as follows:
1. Select faces or vertices to be fit to line. ( See Select >> Entities >> Vertex / Face )
2. Select Ref. Geometry >> Create >> Vector >> Fit Region from the menu or click the corresponding icon from the Reference toolbar.
3. The following dialog may appear.
- Use Remove Outlier option to fit a line to the selected faces/vertices while excepting entities in the region out of standard deviation. Use Ref. Plane sets a given ref. plane as a initial guess for the plane of a primitive to be generated.
- 4.Click Preview button and then click the Create button to create a vector.
Result
A linear vector is generated and the followings are printed out in the console window.
----------------------------------------
Result of Fitting Region
----------------------------------------
* Start Position : -58.34029, 21.10897, 60.61419
* End Position : 94.67032, 8.60262, 67.07152
* Normalized Direction : 0.99580, -0.08139, 0.04202
* Number of Data Points : 188
* Min Error : 0.03892
* Max Error : 8.94269
* RMS Error : 1.68364
* Standard Deviation : 1.68813
----------------------------------------