Jan 31- 10 Lines of Code (100 so far)

import rhinoscriptsyntax as rs
import math as mt
# Author: Kamilah Acebal
# Date: January 22, 2016
# Purpose: To learn how to write a skeletal code
# Input parameters: None
# Output parameters: None

def AddSpongeForm():
"""
Purpose: It will add the form geometry
Input Parameters: None
Output Parameters: None
"""
point1 = 5.826, 15.989, 0
point2 = 5.681, 16.689, 0
point3 = 5.657, 17.014, 0
point4 = 5.681, 17.521, 0
point5 = 5.730, 18.015, 0
point6 = 5.742, 18.510, 0
points = point1, point2, point3, point4, point5, point6
rs.AddCurve(points)

point7 = 5.742, 18.510, 0
point8 = 5.802, 18.992, 0
point10 = 6.031, 20.005, 0
point11 = 6.169, 20.600, 0
point12 = 6.236, 20.996, 0
points2 = point7, point8, point9, point10, point11, point12
rs.AddCurve(points2)

point13 = 6.236, 20.996, 0
point14 = 6.406, 21.572, 0
point15 = 6.589, 21.993, 0
point16 = 6.790, 22.524, 0
point17 = 7.065, 22.982, 0
point18 = 7.523, 23.568, 0
points3 = point13, point14, point15, point16, point17, point18
rs.AddCurve(points3)

point19 = 7.523, 23.568, 0
point20 = 7.715, 23.815, 0
point21 = 7.724, 23.989, 0
point22 = 7.816, 24.355, 0
point23 = 7.925, 24.584, 0
point24 = 8.145, 24.739, 0
points4 = point19, point20, point21, point22, point23, point24
rs.AddCurve(points4)

point25 = 8.145, 24.739, 0
point26 = 8.328, 24.849, 0
point27 = 8.539, 24.849, 0
point28 = 8.896, 25.637, 0
point29 = 9.170, 26.003, 0
point30 = 9.189, 26.360, 0
points5 = point25, point26, point27, point28, point29, point30
rs.AddCurve(points5)

point31 = 9.189, 26.360, 0
point32 = 9.317, 26.744, 0
point33 = 9.546, 26.982, 0
point34 = 9.912, 27.229, 0
point35 = 10.342, 27.385, 0
point36 = 10.507, 27.504, 0
points6 = point31, point32, point33, point34, point35, point36
rs.AddCurve(points6)

point37 = 10.507, 27.504, 0
point38 = 10.507, 27.742, 0
point39 = 10.772, 27.760, 0
point40 = 10.956, 27.797, 0
point41 = 11.023, 27.999, 0
point42 = 11.294, 28.180, 0
points7 = point37, point38, point39, point40, point41, point42
rs.AddCurve(points7)

point43 = 11.294, 28.180, 0
point44 = 11.724, 28.428, 0
point45 = 12.018, 28.575, 0
point46 = 12.368, 28.779, 0
point47 = 12.583, 28.993, 0
point48 = 12.888, 29.242, 0
points8 = point43, point44, point45, point46, point47, point48
rs.AddCurve(points8)

point49 = 12.888, 29.242, 0
point50 = 12.990, 29.287, 0
point51 = 13.012, 29.287, 0
point52 = 13.080, 29.570, 0
point53 = 13.238, 29.615, 0
point54 = 13.329, 29.592, 0
points9 = point49, point50, point51, point52, point53, point54
rs.AddCurve(points9)

point55 = 13.329, 29.592, 0
point56 = 13.498, 29.830, 0
point57 = 13.498, 29.830, 0
point58 = 13.758, 29.965, 0
point59 = 13.894, 29.999, 0
point60 = 14.014, 30.169, 0
points10 = point55, point56, point57, point58, point59, point60
rs.AddCurve(points10)

point61 = 14.014, 30.169, 0
point62 = 14.131, 30.248, 0
point63 = 14.267, 30.350, 0
point64 = 14.651, 30.440, 0
point65 = 14.843, 30.474, 0
point66 = 14.945, 30.632, 0
points11 = point61, point62, point63, point64, point65, point66
rs.AddCurve(points11)

point67 = 14.945, 30.632, 0
point68 = 15.250, 30.655, 0
point69 = 15.385, 30.689, 0
point70 = 15.476, 30.824, 0
point71 = 15.645, 30.966, 0
point72 = 15.849, 31.073, 0
points12 = point67, point68, point69, point70, point71, point72
rs.AddCurve(points12)

point73 = 15.849, 31.073, 0
point74 = 15.984, 31.220, 0
point75 = 16.120, 31.254, 0
point76 = 16.211, 31.367, 0
point77 = 16.367, 31.366, 0
AddSpongeForm()

def AddPores():
pass
AddPores()

def AddSpongeColor():
pass
AddSpongeColor()

def MakeSponge():
AddSpongeForm()
AddPores()
AddSpongeColor()

MakeSponge()

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