From 6492ba6b4107a4da228e18db4fc5fc871bfb0579 Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 17 Aug 2022 21:34:02 -0500 Subject: updated README to show that everything that got deleted went to an -extras repo. also, hackvr script updated to be better bash --- share/hackvr/meshes/drugsandwires/generate.py | 60 --------------------------- 1 file changed, 60 deletions(-) delete mode 100755 share/hackvr/meshes/drugsandwires/generate.py (limited to 'share/hackvr/meshes/drugsandwires/generate.py') diff --git a/share/hackvr/meshes/drugsandwires/generate.py b/share/hackvr/meshes/drugsandwires/generate.py deleted file mode 100755 index 1893cd6..0000000 --- a/share/hackvr/meshes/drugsandwires/generate.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/python -u - -from math import cos -from math import sin -from math import radians -from time import sleep - -def addvector(p,c,theta): - return (p[0]+cos(radians(theta))*c,p[1]+sin(radians(theta))*c) - -def addquad(D,G,J,M): - print("dnw addshape 2 4 {} {} 0 {} {} 0 {} {} 0 {} {} 0\n".format(D[0],D[1],G[0],G[1],J[0],J[1],M[0],M[1])) - -def main(): - c=1 - org=(0,0) - - r=7 - theta=0 - - ## we should have a triangle of A B C after this. - A=addvector(org,c,theta) - B=addvector(org,c,theta+120) - C=addvector(org,c,theta+240) - - ## these three points are along that triangle - ## but are 1/5 of the way towards one of the points. - D=map(lambda x,y:(4*x + y)/5 ,A,B) - E=map(lambda x,y:(4*x + y)/5 ,B,C) - F=map(lambda x,y:(4*x + y)/5 ,C,A) - - G=addvector(D,c*r,theta+150) - H=addvector(E,c*r,theta+270) - I=addvector(F,c*r,theta+30) - - ### points A B and C won't be used in the outputted quads. - J=addvector(D,c,theta+30) - K=addvector(E,c,theta+150) - L=addvector(F,c,theta+270) - - M=addvector(J,c*r,theta+150) - N=addvector(K,c*r,theta+270) - O=addvector(L,c*r,theta+30) - - print("dnw addshape 2 1 0 0 1 {} 0 1\n".format(r)) - print("dnw addshape 0 1 0 0 1 {} 0 1\n".format(r-c)) - - addquad(D,J,M,G) - addquad(E,K,N,H) - addquad(F,L,O,I) - -#uncomment me to make logo spin -# rot=0 -# while(1): -# print("dnw rotate 0 0 {}\n".format(rot)) -# sleep(.005) -# rot+=1 -# rot%=360 - -main() -- cgit v1.2.3