hcp.gen: Generate an HCP Lattice

View source: R/rapt_cluster-sim.R

hcp.genR Documentation

Generate an HCP Lattice

Description

Generates a hexagonal close packed (HCP) structure based on spheres with specified radius within a window of specified size.

Usage

hcp.gen(r, win)

Arguments

r

The radius of the spheres for the HCP structure.

win

A box3 object defining the window for the generation.

Value

A data.frame object containing xyz coordinates of the HCP lattice centers.

See Also

hcpcluster


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