Weighted Sierpinski tetrahedron surface helpers
Source: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.
Usage
sierpinski.tetrahedron.surface.embedding(
level = 2,
surface = c("standard", "squashed", "twisted", "wavy"),
amplitude = 0.3,
freq = 2,
twist = 0.6
)
sierpinski.tetrahedron.surface.graph(
level = 2,
surface = c("standard", "squashed", "twisted", "wavy"),
amplitude = 0.3,
freq = 2,
twist = 0.6,
normalize = c("median", "mean", "none")
)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
sierpinski.tetrahedron.surface.embedding() returns 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.