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 bpy | |
import bmesh; | |
import random, math | |
import time | |
# Obsługa bardzo słabego formatu z NASA... | |
def split(line, breaks): | |
return [line[s:e-1].strip() for s, e in zip(breaks, breaks[1:])] | |
def extract_lines(path): |
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
from cmath import exp | |
from math import pi | |
# A simple class to simulate n-th root of unity | |
# This class is by no means complete and is implemented | |
# merely for FFT and FPM algorithms | |
class NthRootOfUnity: | |
def __init__(self, n, k = 1): | |
self.k = k | |
self.n = n |