dS3D

Approximation of the infinitesimal element of a closed contour with control points.

Contents

Syntax

dS = dS3D(Nb, rad)

Description

dSp = dS3D(Nb, rad) computes approximation of the infinitesimal element on a surface containing points in three dimensional space.

Currently, it is only written for spheres with radius rad on which Nb points are arranged on.

For simplicity, uniform points on surface are assumed.

Input Arguments

Output Arguments

See Also

Code

function dS = dS3D(Nb, rad)

if Nb == 1
    dS = 1;
elseif Nb > 1
    % For simplicity, assume uniform points on surface
    dS = 4*pi*rad^2/Nb;
else
    disp('Error in function dS3D.m: size of input array too small.')
end

end