s=sofrd(r,[d])
r : | Radius | |
d : | particle size (default 0.025) |
s : | maximial step size |
This algorithm is designed to calculate the minimal auxiliary point distance on a circular curved contour. It is part of the SolidGeometry library and is used for generating grids or auxiliary points on a contour or surface.
The function sofrd
calculates the maximal step size s
for a given radius r
and an optional particle size d
. The function relies on another function nofrd
to determine the number of divisions n
required for the given radius and particle size.
The calculation is performed as follows:
nofrd
with the radius r
and any additional arguments provided in varargin
. This function returns the number of divisions n
.s
using the formula: s = 2 * pi * r / n
.The function nofrd
is assumed to calculate the number of divisions based on the radius and particle size, ensuring that the contour is divided into segments that are no larger than the specified particle size.
This algorithm is useful in applications where precise control over the spacing of points along a circular contour is required, such as in computer-aided design and manufacturing processes.
Algorithm explaination created using ChatGPT on 2025-08-18 22:57. (Please note: No guarantee for the correctness of this explanation)