Skip to main content

Space filling curves in python

Project description

space-filling-curves_python

To product a video about Space-filling curve, a make a code based on Lindenmayer system, with objective animate with python

It can be used to teach about recursive functions, to product video and teach childrens about the turtle power.

To construct the curve faster, use https://github.com/PrincetonLIPS/numpy-hilbert-curve

Corrigir:

  • The 3d curves have a error at constants. At both

  • The Gosper_Flowsnake_curve have a little erro that make the iteraction >3 colapse in some lines Plus

    • Add proprietis to change colors with make the iteractions
    • Add the options which Letter start

    How to use

    • Install the package

    • import as "from . import function_name"

    • to plot in 2D, only select the start letter. Choose one below

Function Starts letters
sierspinski_curve S R Z P
hilbert_curve C H A B
peano_curve P Q R S
gosper_Flowsnake_curve G R
pablo_curve A B C D
  • to plot in 3D, select the start letter and call the function "plot()"
function Letters
hilbert_3D A B C D E F G H I J K L
peano_3D S P R Q

At 2D, was used the Turtle

2D Curves

  • sierspinski_curve

  • Hilbert_curve hilbert_curve

  • Peano_curve Peano_curve

  • Gosper_Flowsnake_curve Gosper_curve

  • dragon curve

  • Pablo curve, that a create to a friend

At 3d, was used the aplications matplotlib

3D Curves

  • Hilbert curve hilbert_3d

  • Peano curve peano_3d

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

L_SpaceCurves-0.0.7.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file L_SpaceCurves-0.0.7.tar.gz.

File metadata

  • Download URL: L_SpaceCurves-0.0.7.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for L_SpaceCurves-0.0.7.tar.gz
Algorithm Hash digest
SHA256 1d709a5f0e4dd6f2652674481c16adbef9b9e1a4ff1548716b713c43d833092c
MD5 115713747e1e519c96c2155aa5d3eb06
BLAKE2b-256 9b74d515da38641ff2411c932d8ff3a77d1be83426f395be3da96f65f0e21bb6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page