Learn R Programming

sfcurve (version 1.0.0)

2x2, 3x3 and Nxn Space-Filling Curves

Description

Implementation of all possible forms of 2x2 and 3x3 space-filling curves, i.e., the generalized forms of the Hilbert curve , the Peano curve and the Peano curve in the meander type (Figure 5 in ). It can generates nxn curves expanded from any specific level-1 units. It also implements the H-curve and the three-dimensional Hilbert curve.

Copy Link

Version

Install

install.packages('sfcurve')

Monthly Downloads

148

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Zuguang Gu

Last Published

September 13th, 2024

Functions in sfcurve (1.0.0)

unit_orientation

Flip units
sfc_rotate,sfc_sequence-method

Transformations of a sequence
sfc_grob,sfc_base-method

The graphics object
sfc_universe,sfc_rules-method

The universe base pattern set
sfc_previous_point,sfc_base-method

The previous and the next point
sfc_reduce,sfc_nxn-method

Reduce a curve
sfc_sequence

Constructor of the sfc_sequence class
sfc_segments,sfc_nxn-method

Coordinates of the points on the curve
sfc_validate,sfc_sequence-method

Validate the sequence
[.sfc_sequence

Utility functions
sfc_shape,sfc_2x2-method

Shape of the curve
sfcurve-package

sfcurve: 2x2, 3x3 and nxn Space-Filling Curves
sfc_rules

Constructor of the sfc_rules class
show,sfc_base-method

Print the object
sfc_2x2

Create space-filling curves
sfc_level,sfc_nxn-method

The level of the curve
hilbert_curve

Various curves in their standard forms
sfc_mode,sfc_nxn-method

The mode of the curve
all_traverse_paths

All traverse paths of a sequence
SFC_RULES_2x2

Rules
hilbert_3d

Three dimensional Hilbert curve
draw_rules_2x2

Draw the expansion rules
plot_segments

Plot segments
sfc_3x3_combined

General 3x3 space-filling curves
draw_multiple_curves

Draw multiple curves
level1_unit_orientation,sfc_3x3_peano-method

Level-1 unit in the Peano curve and Meander curve
sfc_h

H-curve
sfc_expand_by_rules,sfc_rules,sfc_nxn-method

Expand a sequence
sfc_4x4_meander

4x4 space-filling curves in meander type
[.sfc_nxn

Subunit in the curve
sfc_generator

Generate a nxn curve based on expansion rules
sfc_apply,sfc_nxn-method

Apply to every unit in the sfc_nxn curve
sfc_base

Constructor of the sfc_base class
sfc_expand,sfc_2x2-method

Expand the curve to the next level
sfc_is_compatible,sfc_sequence,sfc_sequence-method

Whether two sfc_sequence objects are compatible
BASE_I

Base patterns
H0

Seed sequences of the H-curve