Hi all,
for some reason I cannot get this to work:
import rhinoscriptsyntax as rs
import math
c = []
c.append(rs.AddLine([0,0,0],[y,0,0]))
c.append(rs.AddLine([0,0,0],[-x,-x,0]))
c.append(rs.AddLine([-x,-x,0],[y+x,-x,0]))
c.append(rs.AddLine([y,0,0],[y+x,-x,0]))
c = rs.JoinCurves(c)
c.append(rs.MirrorObject(c,[0,z/2,0],[1,z/2,0],True))
h = []
h.append(rs.AddLine([0,0,0],[0,z,0]))
h.append(rs.AddLine([0,0,0],[-x,-x,0])) #common line
h.append(rs.AddLine([-x,-x,0],[-x,z+x,0]))
h.append(rs.AddLine([0,z,0],[-x,z+x,0]))
h = rs.JoinCurves(h)
c.append(h)
c.append(rs.MirrorObject(h,[y/2,0,0],[y/2,1,0],True))
a=c
for some reason, in the output (a) the code under c.append(h) is not visible?
Thanks!
Framecreate.gh (5.0 KB)