slice: Slices the fracture geometry

View source: R/slice.R

sliceR Documentation

Slices the fracture geometry

Description

Slices the fracture with respect to a specific property, and threshold level

Usage

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
)

Arguments

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

Value

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)

Examples

power.iso = function(f) 0.0001 * f^{-4.5}
ret = fracture_geom(refine=4, power.iso = power.iso)
ret2 = slice(ret, type="above")


llaniewski/rfracture documentation built on Aug. 21, 2023, 11:10 a.m.