Generates a merged sphere mesh from a set of center points, radii, and colors, then renders it with the given camera and options.
Usage
render_spheres(
centers,
radii,
colors,
camera,
options = render_options(),
segments = 16L
)Arguments
- centers
Nx3 numeric matrix of sphere centre coordinates.
- radii
Numeric vector of sphere radii (length N, or 1 recycled to N).
- colors
Nx4 numeric matrix of RGBA colours (0-1 scale), or a single colour recycled to N.
- camera
A camera list from
camera()orcamera_auto().- options
Render options from
render_options().- segments
Number of latitude/longitude segments per sphere (default 16).