View source: R/fracture_geom.R
fracture_geom | R Documentation |
Generate a 3D fracture geometry with trianglar mesh
fracture_geom(width = 1, refine = 1, method = c("triangles", "diagonals"), ...)
width |
linear dimension of the square cut of the fracture |
refine |
refinement level |
... |
parameters passed to fracture_matrix function |
power.spectrum |
power spectrum of the fields (function of frequency) |
corr.profile |
correlation profile between (function of wave length) |
ret = fracture_geom(
width = 1,
refine = 10,
corr.profile = function(lambda) 0.5,
closed=0.1,
power.iso = exp_spectrum(scale=0.01, alpha=3)
)
if (require(rgl)) fracture3d(cut(ret))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.