This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import datetime | |
import math | |
from scipy.spatial import Delaunay | |
import struct | |
""" | |
Example: | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in trace_a s d=[0,0] n=1 | |
in trace_b s d=[0,0] n=1 | |
in colorize s d=1 n=2 | |
in reverse s d=0 n=2 | |
out centers s | |
out radii s | |
out hue s | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in trace_a s d=[0,0] n=1 | |
in trace_b s d=[0,0] n=1 | |
in colorize s d=1 n=2 | |
in reverse s d=1 n=2 | |
out centers s | |
out radii s | |
out hue s | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in u s d=[0,2] n=1 | |
in r s d=1 n=2 | |
in epsilon s d=0.005 n=2 | |
in levmax s d=50 n=2 | |
out verts_out v | |
out edges_out s | |
""" | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in tr_al s d=[2,0] n=1 | |
in tr_bl s d=[2,0] n=1 | |
in r s d=1 n=2 | |
in epsilon s d=0.005 n=2 | |
in levmax s d=50 n=2 | |
out verts_out v | |
out edges_out s | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in centers_in v | |
in radii_in s | |
in max_level s d=2 n=2 | |
out centers_out v | |
out radii_out s | |
""" | |
# Schottky Circles | |
# Implementation is based on https://github.com/soma-arc/SchottkyLink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in base_center v | |
in base_radius s | |
in centers_in v | |
in radii_in s | |
in max_level s d=2 n=2 | |
out centers_out v | |
out radii_out s | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in verts_in v | |
in faces_in s | |
in s_param s d=0.2 n=2 | |
in depth s d=3 n=2 | |
out verts_out v | |
out faces_out s | |
""" | |
#Gyrovector space for making hyperbolic polyhedra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in radius1 s .=3.0 n=2 | |
in radius2 s .=3.0 n=2 | |
in radius3 s .=3.0 n=2 | |
in depth s .=3 n=2 | |
out centers v | |
out radii s | |
""" | |
# Code block below is from https://github.com/lsandig/apollon/apollon.py (GPL License) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
in p s | |
in q s | |
in t s | |
in verts v | |
out verts_out v | |
""" | |
import numpy as np | |
import math |
NewerOlder