slice | R Documentation |
Slices the fracture with respect to a specific property, and threshold level
slice(
obj,
by,
level,
type = c("all", "above", "below", "equal"),
flatten = c("edge", "above", "below", "none"),
edge_is_border,
cut.triangles = TRUE,
cut.edges = TRUE,
cut.vertexes = TRUE,
eps = 1e-10,
verbose = FALSE
)
obj |
fracture_geom object |
by |
name of the property/field by which to slice |
level |
threshold level on the property |
type |
type of the returned object (see return value) |
flatten |
if to snap values to the threshold level |
edge_is_border |
if to mark all new edges border edges |
eps |
the numerical accuracy to use |
verbose |
print information about cutting |
If type is "all", the function returns the same fracture_geom object, with some of the triangles sliced. If type is "above", the function returns only the part of the geometry, for which property > level "below" returns the opposite. "equal" returns a list(points, edges), where points are points with property == level, and edges are the connecting edges (two columns)
power.iso = function(f) 0.0001 * f^{-4.5}
ret = fracture_geom(refine=4, power.iso = power.iso)
ret2 = slice(ret, type="above")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.