rblock.scalesphere

Syntax

b = rblock.scalesphere(rb,f)

Scale the rigid block to an equivalent sphere. The rigid block is scaled so that its {area in 2D; volume in 3D} is the same as a {circle in 2D; sphere in 3D} of diameter f. The pebbles are scaled, their positions are modified, and the volume is updated.

Note

Returns:

b - boolean indicating success/failure of operation

Arguments:

rb - rigid block pointer

f - diameter of {a circle in 2D; sphere in 3D}