Learn R Programming

isocubes (version 1.0.0)

gen_sphere: Generate voxel coordinates for a sphere centered at the origin

Description

Generate voxel coordinates for a sphere centered at the origin

Usage

gen_sphere(r = 10)

Value

data.frame of voxel coordinates

Arguments

r

radius. Default: 10

Examples

Run this code
gen_sphere(1) |>
  isocubesGrob() |>
  grid::grid.draw()

Run the code above in your browser using DataLab