Skip to content

Instantly share code, notes, and snippets.

@FreakTheMighty
Created May 28, 2020 16:54
Show Gist options
  • Save FreakTheMighty/3d53e9cb59a7636e27c0c1d757a5ee41 to your computer and use it in GitHub Desktop.
Save FreakTheMighty/3d53e9cb59a7636e27c0c1d757a5ee41 to your computer and use it in GitHub Desktop.
import numpy as np
path = {'vertices': np.array([[-0.52944955, 0.51464708],
[-0.49406779, 0.47878949],
[-0.45868602, 0.44293189],
[-0.42331859, 0.40709022],
[-0.38793683, 0.37123263],
[-0.35256125, 0.33538164],
[-0.31718763, 0.29953336],
[-0.28180587, 0.26367577],
[-0.24643183, 0.22782366],
[-0.21105667, 0.19197651],
[-0.1756811 , 0.15612552],
[-0.14000618, 0.12054397],
[-0.10433746, 0.08496902],
[-0.06867534, 0.04940452],
[-0.03300043, 0.01382296],
[ 0.0026683 , -0.02175198],
[ 0.05821569, -0.06962708],
[ 0.11628009, -0.12523841],
[ 0.16618068, -0.17876395],
[ 0.19222823, -0.19757524],
[ 0.22681698, -0.23160785],
[ 0.26111318, -0.26510959],
[ 0.29490918, -0.29936606],
[ 0.33088958, -0.33444166],
[ 0.36656271, -0.3701841 ],
[ 0.40498624, -0.40983985],
[ 0.45069354, -0.46414537],
[ 0.50737425, -0.5143237 ],
[ 0.54179039, -0.54735209],
[ 0.57590119, -0.58148045],
[ 0.59596429, -0.60918405],
[ 0.64446448, -0.64851629],
[ 0.68051768, -0.69054136],
[ 0.73401712, -0.74752152],
[ 0.77164427, -0.78436486],
[ 0.82644072, -0.83653175],
[ 0.79431106, -0.79729129],
[ 0.8367646 , -0.83460072],
[ 0.80571783, -0.78593678],
[ 0.77005487, -0.75036462],
[ 0.7343908 , -0.71479741],
[ 0.68830734, -0.6861485 ],
[ 0.63829443, -0.63271725],
[ 0.59730319, -0.59238991],
[ 0.55710061, -0.55358398],
[ 0.49493681, -0.49114029],
[ 0.44454312, -0.44835014],
[ 0.48473004, -0.46578468],
[ 0.44907369, -0.43022296],
[ 0.39206669, -0.3870537 ],
[ 0.35511386, -0.34924127],
[ 0.31754876, -0.31233331],
[ 0.28491795, -0.27826868],
[ 0.25105933, -0.24633325],
[ 0.21206369, -0.20681552],
[ 0.19941335, -0.18121406],
[ 0.16374886, -0.14564302],
[ 0.1280859 , -0.11007087],
[ 0.09241521, -0.07449322],
[ 0.1240735 , -0.12085138],
[ 0.06898814, -0.06225368],
[ 0.02995404, -0.02303609],
[ 0.05675072, -0.03892218],
[ 0.02108776, -0.00335002],
[-0.01458292, 0.03222763],
[-0.05024741, 0.06779867],
[-0.08590376, 0.10336039],
[-0.12157444, 0.13893804],
[-0.15723894, 0.17450907],
[-0.19261647, 0.21036277],
[-0.22798739, 0.24620602],
[-0.26336492, 0.28205971],
[-0.29873585, 0.31790296],
[-0.33411338, 0.35375665],
[-0.36949049, 0.38960652],
[-0.40486802, 0.42546021],
[-0.44889385, 0.4561335 ],
[-0.49258467, 0.49395031],
[-0.5348813 , 0.54481375],
[-0.59301325, 0.59902229],
[-0.64134755, 0.65203874],
[-0.69323666, 0.6964892 ],
[-0.74126849, 0.75184452],
[-0.78317398, 0.79511482],
[-0.83358358, 0.83831008],
[-0.87861691, 0.87770415],
[-0.84783471, 0.83731216],
[-0.81245448, 0.80145345],
[-0.77708552, 0.7656129 ],
[-0.74170529, 0.72975419],
[-0.70632352, 0.69389659],
[-0.67095456, 0.65805604],
[-0.63557433, 0.62219733],
[-0.60019875, 0.58634634],
[-0.56481698, 0.55048875],
[ 0.72252795, -0.72658712],
[ 0.75826205, -0.76228097],
[ 0.73401712, -0.74752152]]), 'segments': [[0, 1], [1, 2], [2, 3], [3, 4], [4, 5], [5, 6], [6, 7], [7, 8], [8, 9], [9, 10], [10, 11], [11, 12], [12, 13], [13, 14], [14, 15], [15, 16], [16, 17], [17, 18], [18, 19], [19, 20], [20, 21], [21, 22], [22, 23], [23, 24], [24, 25], [25, 26], [26, 27], [27, 28], [28, 29], [29, 30], [30, 31], [31, 32], [32, 33], [33, 34], [34, 35], [35, 36], [36, 37], [37, 38], [38, 39], [39, 40], [40, 41], [41, 42], [42, 43], [43, 44], [44, 45], [45, 46], [46, 47], [47, 48], [48, 49], [49, 50], [50, 51], [51, 52], [52, 53], [53, 54], [54, 55], [55, 56], [56, 57], [57, 58], [58, 59], [59, 60], [60, 61], [61, 62], [62, 63], [63, 64], [64, 65], [65, 66], [66, 67], [67, 68], [68, 69], [69, 70], [70, 71], [71, 72], [72, 73], [73, 74], [74, 75], [75, 76], [76, 77], [77, 78], [78, 79], [79, 80], [80, 81], [81, 82], [82, 83], [83, 84], [84, 85], [85, 86], [86, 87], [87, 88], [88, 89], [89, 90], [90, 91], [91, 92], [92, 93], [93, 94], [94, 0], [95, 96], [96, 97], [97, 95]], 'holes': np.array([[ 0.73063974, -0.73705432]])}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment