draw_sphere {recexcavAAR} | R Documentation |
Draws a spherical point cloud (3D)
Description
Draws a sphere around a center point in 3D space.
Usage
draw_sphere(centerx, centery, centerz, radius, phires = 10L, thetares = 10L)
Arguments
centerx |
x axis value of sphere center point |
centery |
y axis value of sphere center point |
centerz |
z axis value of sphere center point |
radius |
sphere radius |
phires |
phi resolution (default = 10) |
thetares |
theta resolution (default = 10) |
Value
data.frame with the spatial coordinates of the resulting points
Examples
sphere <- draw_sphere(
centerx = 4,
centery = 5,
centerz = 1,
radius = 3,
phires = 20,
thetares = 20
)
#library(rgl)
#plot3d(sphere)
[Package recexcavAAR version 0.3.0 Index]