Description Usage Arguments Value Examples
View source: R/generate_sphere.R
Generate a spherical point cloud
1 | generate_sphere(angular_res = 1, r = 1, sph = FALSE)
|
angular_res |
the angular resolution that sets the spacing between points. |
r |
numeric. The sphere radius. |
sph |
logical. If |
a data.table containing points coordinates.
1 2 3 4 5 | # generate a sphere
sph <- viewshed3d::generate_sphere()
# plot the sphere
rgl::plot3d(sph)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.