Weighted Sierpinski tetrahedron surface helpers
Source:R/export_examples.R, R/graph_helpers.R
sierpinski_tetrahedron_surface_helpers.RdConvenience wrappers around recursive.tetrahedron.mask.surface.*()
using the classic all-corner tetrahedron mask. These helpers are intended
for benchmark families where the topology is the standard simplicial
tetrahedral gasket but the intended metric comes from a squashed, twisted,
or spatially varying realization.
Arguments
- level
Recursion depth. May be
0or larger.- surface
Tetrahedron surface family. One of
"standard","squashed","twisted", or"wavy".- amplitude
Finite deformation amplitude.
- freq
Positive modulation frequency used only when
surface = "wavy".- twist
Finite twist strength used only when
surface = "twisted".- normalize
Normalization applied to the induced edge lengths. One of
"median","mean", or"none".
Value
The coords_surface component is an n x 3
numeric matrix with columns x, y, and z.
sierpinski.tetrahedron.surface.graph() returns the same components as
recursive.tetrahedron.mask.surface.graph(), with family set to
"sierpinski.tetrahedron" and a family-specific class and label.