k-Wave Toolbox |
Create a 3D Cartesian sphere
sphere = makeCartSphere(radius, num_points) sphere = makeCartSphere(radius, num_points, center_pos) sphere = makeCartSphere(radius, num_points, center_pos, plot_sphere)
makeCartSphere
creates a 3 x num_points
array of the Cartesian coordinates of points evenly distributed over a sphere using the Golden Section Spiral method. The function is based on code by Patric Boucher and Henry Bland on http://www.xsi-blog.com. The 3D plot that is displayed after calling makeCartSphere(10, 500, [0,0,0], true)
is given below.
|
sphere radius [m] |
|
number of points on the sphere |
|
[x, y, z] position of the circle center [m] (default = [0, 0, 0]) |
|
Boolean controlling whether the Cartesian coordinates are plotted using |
|
3 x |
cart2grid
, makeCartCircle
, makeSphere
makeCartCircle | makeCircle |
© 2009-2014 Bradley Treeby and Ben Cox.