Skip to main content

supershape

Python code to efficiently generate 3D SuperShapes.

3D SuperShapes are a family of parametric surfaces that can take on a variety of shapes depending on the parametrization. The following snippet creates 3D coordinates of a flower-like object

import supershape as sshape

x,y,z = sshape.supercoords(
    # m, a, b, n1, n2, n3 (1x6 or 2x6)
    [7, 1, 1, 0.2, 1.7, 1.7], 
    # u,v resolution
    shape=(50,50)
)

To reproduce the above result, run

python -m supershape

Install

Via pip

pip install supershape

Blender support

Add the cloned folder path to your PYTONPATH, then launch Blender (>=v2.8) as follows

blender --python-use-system-env --python scripts\blender_demo.py

to get

To avoid modifying your PYTHONPATH, you can may install supershape into the Blender Python environment. See this script for example.

Releases

Tags on master are pushed as releases to PyPi.

  1. Version bump
  2. Commit push and await build result.
  3. git tag <tagname> -a
  4. git push origin --tags Or create the tag throuh the Releases page in github.

Metadata

Release files for supershape 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supershape 1.1.1
File Size Uploaded
supershape-1.1.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for supershape 1.1.1
File Interpreter ABI Platform
supershape-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / supershape-1.1.1.tar.gz

Download URL supershape-1.1.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aee2ae72f47d6a82516679ff8be3bfec92a558c24288be7d2b8a658ae6fccc7e
BLAKE2b-256 checksum
How to use checksums
482afd1db4afb45e136d5e0d252549498f9c66af7feaad7289a3d24e7b17fe1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.1

Release files / supershape-1.1.1-py3-none-any.whl

Download URL supershape-1.1.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c7cf783ae739b21f49fcb650874989524ffae05a4f0cf1be1cf130b6a685759
BLAKE2b-256 checksum
How to use checksums
706aa82b73dee34e56d0af6c314e5085855d2b860a6a0f02157fe16ab869f633
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.1

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page