R=Rofrdintrusion([d,r])
d : | distance between chord and Radius R | |
r : | radius of the chord |
R : | Radius of a circle with chordlength 2*r and d between chord and R |
Rofrdintrusion(5,13.2288)
This function, Rofrdintrusion
, calculates the minimum intrusion distance required to fully insert a cylinder into a sphere. It is part of the SolidGeometry library and was introduced in version 5.0.
R
.2*r
and a distance d
between the chord and R
.d
and r
using the getfuncparams
function. Default values are 3 for d
and 10 for r
if not provided.a
using the formula a = atan(d/r)
.R
using the formula R = d / (1 - cos(2*a))
.nargout == 0
), visualize the result using plotting functions:R
using CPLplot
.lplot
.R
, d
, and r
.To calculate the radius R
for a chord with a distance d = 5
and radius r = 13.2288
, use:
Rofrdintrusion(5, 13.2288)
Algorithm explaination created using ChatGPT on 2025-08-19 01:19. (Please note: No guarantee for the correctness of this explanation)