1/24 – 10lines- camilo tirado

def addHexagon ( ):
    """ purposes: alternate way to create essential geometric shape for beehive
    Input Parameters: None
    Output Paramters: None
    """
    p0 = 1,0,0
    p1 = 2,0,0
    p2 = 3,1,0
    p3 = 2,2,0
    p4 = 1,2,0
    p5 = 0,1,0
    points = p0, p1, p2, p3, p4, p5, p0
    rs.AddCurve(points, 1)

def addHoneyComb():
    """purposes: add outter edge to the hexagon
    input parameters: object id, direction, distance
    output parameters: none
    """
    outteredge = rs.GetObject("select hexagon",4)
    if outteredge:
        rs.OffsetCurve(outteredge, [2,3,0], 0.5)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s