draw_sphere: Draws a spherical point cloud (3D)

Description Usage Arguments Value Examples

Description

Draws a sphere around a center point in 3D space.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sphere <- draw_sphere(
  centerx = 4,
  centery = 5,
  centerz = 1,
  radius = 3,
  phires = 20,
  thetares = 20
)

#library(rgl)
#plot3d(sphere)

recexcavAAR documentation built on May 1, 2019, 6:48 p.m.