scaleRCP: Scale RCP Data

View source: R/rapt_rcp-sim.R

scaleRCPR Documentation

Scale RCP Data

Description

Given an original raw RCP output file, scale the 3D point cloud as if the spheres have a specific radius.

Usage

scaleRCP(pp3file, newRadius = 0.5, oldRadius = NULL, win = NULL)

Arguments

pp3file

A pp3 object containing the RCP generated 3D point positions.

newRadius

The radius that you would like to scale to. Default is 0.5 units

oldRadius

The radius of the original RCP generation, taken from the "system" file output from the generation. Required input.

win

A box3 object indicating the size of the original rcp generation. Can leave blank if these are integer value.

Details

Input the original radius, taken from the "system" file output from the RCP generation, and the new desired radius, scaleRCP will scale the RCP point cloud as if the original generation hapened with spheres of the specified radius.

Value

Will return a pp3 object with the scaled point positions.

See Also

Other simulation functions: clustersim(), lattice(), makecluster(), morph_lamellar(), morph_rods(), nmers(), read.rcp(), stitch.size()


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.