Learn R Programming

simLife (version 0.5.2)

getSphereProjection: Sphere projections

Description

The function draws the defect projections in a 3d plot and returns the points of its the convex hull together with points of each projected particle (here a sphere).

Usage

getSphereProjection(S, draw = TRUE, conv = TRUE, np = 20)

Arguments

S

particles to be projected

draw

logical, draw=TRUE (default) draw the projected spheres

conv

logical, conv=TRUE (default) draw the convex hull

np

number of points used for sampling the convex hull of projections

Value

draw projections and the convex hull (if enabled) in a 3d plot returning its polygonal area and points of the convex hull