-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassign_s1_.mob
1 lines (1 loc) · 32.7 KB
/
assign_s1_.mob
1
{"name":"assign_step1_ans","author":"new_user","flowchart":{"id":"aa5bf34b-a46b-c8ef-6224-0e75d67f7ffb","name":"Context - Two Towers","description":"Importing the context of surrounding buildings and trees for visualisation.","language":"js","meta":{"selected_nodes":[0]},"nodes":[{"name":"Start","id":"node_zn2tyqxr3q","position":{"x":5140,"y":4960},"enabled":true,"type":"start","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"state":{"procedure":[],"show_code":false,"show_func":false},"input":{"name":"input","type":0,"edges":[],"meta":{"mode":0,"opts":{}},"parentNode":"~flowchart~nodes~0"},"output":{"name":"output","type":1,"edges":[{"source":"~flowchart~nodes~0~output","target":{"name":"input","type":0,"edges":["~flowchart~nodes~0~output~edges~0"],"meta":{"mode":0,"opts":{}},"parentNode":{"name":"Geolocation","id":"node_332wgibbu5f","position":{"x":5140,"y":5060},"enabled":true,"type":"","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":14,"ID":"prod-12wlrb5ktlsm","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"COMPLETE THE EXPRESSION TO SET GEOLOCATION"}],"selectGeom":false},{"type":14,"ID":"prod-ubw1zprn54e","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"LATITUDE 1.299167"}],"selectGeom":false},{"type":14,"ID":"prod-5v1zwfignpk","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"LONGITUDE 103.856193"}]},{"type":14,"ID":"prod-av0znfedyup","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"ELEVATION 0.5"}],"selectGeom":false},{"type":14,"ID":"prod-8bvzz0h045n","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"NORTH DIRECTION [-11, 10]"}]},{"type":14,"ID":"prod-ms6fg35z0a","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"\\x7e~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"selectGeom":false},{"type":0,"ID":"prod-776wpsi0fqg","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"@geolocation","jsValue":"@geolocation","usedVars":[]},{"name":"value","value":"{\"latitude\": 1.299167,\"longitude\": 103.856193,\"elevation\": 0.5}","usedVars":[],"jsValue":"{\"latitude\": 1.299167,\"longitude\": 103.856193,\"elevation\": 0.5}"}],"variable":null,"selectGeom":false},{"type":0,"ID":"prod-1q6w9axond","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"@north","jsValue":"@north","usedVars":[]},{"name":"value","value":"[-11, 10]","usedVars":[],"jsValue":"[-11, 10]"}],"variable":null,"selectGeom":false},{"type":14,"ID":"prod-dkgu83b11q6","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷"}],"selectGeom":false}],"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"state":{"procedure":[],"show_code":true,"show_func":true},"hasError":false,"hasExecuted":true,"input":"~flowchart~nodes~0~output~edges~0~target","output":{"name":"output","type":1,"edges":[{"source":"~flowchart~nodes~0~output~edges~0~target~parentNode~output","target":{"name":"input","type":0,"edges":["~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0"],"meta":{"mode":0,"opts":{}},"parentNode":{"name":"Import\nTrees","id":"node_mlwrrsvuk8","position":{"x":5020,"y":5160},"enabled":true,"type":"","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":14,"ID":"prod-bsqatpjvpgl","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"IMPORT GEOJSON DATA FOR BUGIS TREES"}],"selectGeom":false},{"type":14,"ID":"prod-x55b91yhq8","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"\\x7e~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"selectGeom":false},{"type":8,"ID":"prod-bvnr0y0b079","enabled":true,"print":false,"meta":{"module":"io","name":"Import"},"argCount":4,"args":[{"name":"var_name","value":"tree_points_coll","jsValue":"tree_points_coll_"},{"name":"__model__"},{"name":"model_data","value":"\"https://mooc-s3cf.s3-ap-southeast-1.amazonaws.com/semantic_modelling/data/bugis_trees.geojson\"","usedVars":[],"jsValue":"\"https://mooc-s3cf.s3-ap-southeast-1.amazonaws.com/semantic_modelling/data/bugis_trees.geojson\""},{"name":"data_format","value":"'geojson'","usedVars":[],"jsValue":"'geojson'"}],"variable":"tree_points_coll","selectGeom":false},{"type":14,"ID":"prod-a3iqujp1h7f","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷"}],"selectGeom":false}],"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"state":{"procedure":[],"show_code":true,"show_func":true},"input":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target","output":{"name":"output","type":1,"edges":[{"source":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output","target":{"name":"input","type":0,"edges":["~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0"],"meta":{"mode":0,"opts":{}},"parentNode":{"name":"Generate Trees","id":"node_gemhomrzd9","position":{"x":5020,"y":5280},"enabled":true,"type":"","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":0,"ID":"prod-ld0x0qsuac","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"tree_points","jsValue":"tree_points_"},{"name":"value","value":"#pt","usedVars":[],"jsValue":"__modules__.query.Get(__params__.model, 'pt', null)"}],"variable":"tree_points"},{"type":14,"ID":"prod-v8w173kxhoq","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"Create a tree at each point"}]},{"type":18,"ID":"prod-thk11hcfz8p","enabled":true,"print":false,"argCount":1,"meta":{"module":"localFunc","name":"tree"},"args":[{"name":"var_name","value":"tree_base","jsValue":"tree_base_"}],"selectGeom":false,"variable":"tree_base"},{"type":4,"ID":"prod-oetl9au0m4a","enabled":true,"print":false,"argCount":2,"args":[{"name":"item","value":"point","jsValue":"point_"},{"name":"list","value":"tree_points","usedVars":["tree_points"],"jsValue":"tree_points_"}],"children":[{"type":13,"ID":"prod-acfvbfhsjsw","parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":14,"ID":"prod-s032t5hvdod","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"COMPLETE THE EXPRESSION TO GET THE TREE HEIGHT"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4"},{"type":14,"ID":"prod-u4aehxbs69l","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"CHECK THE ATTRIBUTE TABLE FOR CORRECT NAME"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4"},{"type":14,"ID":"prod-95ev6205m2w","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"\\x7e~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4"},{"type":0,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","ID":"prod-874fa7cbj0a","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"height","jsValue":"height_"},{"name":"value","value":"point@HT_TREE","usedVars":["point"],"jsValue":"__modules__.attrib.Get(__params__.model, point_, 'HT_TREE')"}],"variable":"height","selectGeom":false},{"type":14,"ID":"prod-pm1qwy1337","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4"},{"type":0,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","ID":"prod-p2f5y6th6v","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"xyz","jsValue":"xyz_"},{"name":"value","value":"point#ps[0] @xyz","usedVars":["point"],"jsValue":"__modules__.attrib.Get(__params__.model, __modules__.query.Get(__params__.model, 'ps', point_)[pythonList(0, __modules__.query.Get(__params__.model, 'ps', point_).length)], 'xyz')"}],"variable":"xyz","selectGeom":false},{"type":8,"ID":"prod-z9vest0o72f","enabled":true,"print":false,"meta":{"module":"make","name":"Copy"},"argCount":4,"args":[{"name":"var_name","value":"tree_copy","jsValue":"tree_copy_"},{"name":"__model__"},{"name":"entities","value":"tree_base","usedVars":["tree_base"],"jsValue":"tree_base_"},{"name":"vector","value":"xyz","usedVars":["xyz"],"jsValue":"xyz_"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","variable":"tree_copy"},{"type":0,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","ID":"prod-ap9ss3afvm","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"scale_factor","jsValue":"scale_factor_"},{"name":"value","value":"height / 10","usedVars":["height"],"jsValue":"height_ / 10"}],"variable":"scale_factor","selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","ID":"prod-7ts6uy3z2sm","enabled":true,"print":false,"meta":{"module":"modify","name":"Scale"},"argCount":5,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"tree_copy","usedVars":["tree_copy"],"jsValue":"tree_copy_"},{"name":"plane","value":"xyz","usedVars":["xyz"],"jsValue":"xyz_"},{"name":"scale","value":"scale_factor","usedVars":["scale_factor"],"jsValue":"scale_factor_"}],"selectGeom":false}],"variable":"point","selectGeom":false},{"type":14,"ID":"prod-6gviexlwjuf","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"COMPLETE THE EXPRESSION TO SET THE COLOR OF TREES TO GREEN"}],"selectGeom":false},{"type":14,"ID":"prod-bdc690y5g6e","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"r = 0.5, g = 1, b = 0.5"}],"selectGeom":false},{"type":14,"ID":"prod-f9d1xl0nmep","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"\\x7e~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"selectGeom":false},{"type":14,"ID":"prod-1zr4w7kc3jq","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"insert code"}]},{"type":8,"ID":"prod-aqdf24gky2","enabled":true,"print":false,"meta":{"module":"visualize","name":"Color"},"argCount":4,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"#pg","usedVars":[],"jsValue":"__modules__.query.Get(__params__.model, 'pg', null)"},{"name":"color","value":"[0.5, 1, 0.5]","usedVars":[],"jsValue":"[0.5, 1, 0.5]"}],"selectGeom":false},{"type":14,"ID":"prod-au1fcf3juvj","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷"}],"selectGeom":false},{"type":14,"ID":"prod-figim3es6nf","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"Clean up"}]},{"type":8,"ID":"prod-2z18e2kewtg","enabled":true,"print":false,"meta":{"module":"edit","name":"Delete"},"argCount":4,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"#pg","usedVars":[],"jsValue":"__modules__.query.Get(__params__.model, 'pg', null)"},{"name":"method","value":"'keep_selected'","usedVars":[],"jsValue":"'keep_selected'"}],"selectGeom":false}],"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":16,"ID":"prod-2q4buqgti68","enabled":true,"print":false,"argCount":1,"meta":{"module":"","name":"","otherInfo":{"prev_name":"tree","num_returns":1,"collapsed":true}},"args":[{"name":"func_name","value":"tree","jsValue":"tree_"}],"children":[{"type":13,"ID":"prod-8dd5b77qjwe","parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~localFunc~1","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":14,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~localFunc~1","ID":"prod-hymeejb007f","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"Tree is 10 meter high"}],"selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~localFunc~1","ID":"prod-ya10yzwzz5j","enabled":true,"print":false,"meta":{"module":"pattern","name":"Box"},"argCount":6,"args":[{"name":"var_name","value":"posis","jsValue":"posis_"},{"name":"__model__"},{"name":"origin","value":"[0, 0, 7.5]","usedVars":[],"jsValue":"[0, 0, 7.5]"},{"name":"size","value":"[7, 7, 5]","usedVars":[],"jsValue":"[7, 7, 5]"},{"name":"num_positions","value":"2","usedVars":[],"jsValue":"2"},{"name":"method","value":"'quads'","jsValue":"'quads'","usedVars":[]}],"variable":"posis"},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~localFunc~1","ID":"prod-rgz4b0a6f6n","enabled":true,"print":false,"meta":{"module":"make","name":"Polygon"},"argCount":3,"args":[{"name":"var_name","value":"canopy","jsValue":"canopy_"},{"name":"__model__"},{"name":"entities","value":"posis","usedVars":["posis"],"jsValue":"posis_"}],"variable":"canopy"},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~localFunc~1","ID":"prod-g9gmsvguji","enabled":true,"print":false,"meta":{"module":"make","name":"Position"},"argCount":3,"args":[{"name":"var_name","value":"base","jsValue":"base_"},{"name":"__model__"},{"name":"coords","value":"[0, 0, 0]","usedVars":[],"jsValue":"[0, 0, 0]"}],"variable":"base","selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~localFunc~1","ID":"prod-taxe2pnyhyo","enabled":true,"print":false,"meta":{"module":"make","name":"Extrude"},"argCount":6,"args":[{"name":"var_name","value":"trunk","jsValue":"trunk_"},{"name":"__model__"},{"name":"entities","value":"base","usedVars":["base"],"jsValue":"base_"},{"name":"dist","value":"7.5","usedVars":[],"jsValue":"7.5"},{"name":"divisions","value":"1","usedVars":[],"jsValue":"1"},{"name":"method","value":"'stringers'","jsValue":"'stringers'","usedVars":[]}],"variable":"trunk","selectGeom":false},{"type":17,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~localFunc~1","ID":"prod-wkgjvd0mg6c","enabled":true,"print":false,"argCount":1,"args":[{"name":"Value","value":"listFlat([trunk, canopy])","usedVars":["canopy","trunk"],"jsValue":"listFlat(__debug__, [trunk_, canopy_])"}],"selectGeom":false}],"variable":null,"selectGeom":false}],"state":{"procedure":[],"show_code":true,"show_func":true},"hasError":false,"hasExecuted":true,"input":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target","output":{"name":"output","type":1,"edges":[{"source":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output","target":{"name":"input","type":0,"edges":["~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0",{"source":{"name":"output","type":1,"edges":["~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1"],"meta":{"mode":0},"parentNode":{"name":"Extrude Blocks","id":"node_6uuzz57acf","position":{"x":5260,"y":5280},"enabled":true,"type":"","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":0,"ID":"prod-tg86m6d4mfc","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"footprints","jsValue":"footprints_"},{"name":"value","value":"#pg","usedVars":[],"jsValue":"__modules__.query.Get(__params__.model, 'pg', null)"}],"variable":"footprints"},{"type":14,"ID":"prod-3y9j1m4u5rk","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"Extrude each block"}]},{"type":4,"ID":"prod-y2ksq8kjbr","enabled":true,"print":false,"argCount":2,"args":[{"name":"item","value":"footprint","jsValue":"footprint_"},{"name":"list","value":"footprints","usedVars":["footprints"],"jsValue":"footprints_"}],"children":[{"type":13,"ID":"","parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":14,"ID":"prod-8pl5o96ty7o","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"COMPLETE THE EXPRESSION TO GET THE BUILDING HEIGHT"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3"},{"type":14,"ID":"prod-6sun9h96wil","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"CHECK THE ATTRIBUTE TABLE FOR CORRECT NAME"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3"},{"type":14,"ID":"prod-h6y5y7ypdcs","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"\\x7e~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3"},{"type":0,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3","ID":"prod-p0h8s1tg83c","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"height","jsValue":"height_"},{"name":"value","value":"footprint@HT_BLDG","usedVars":["footprint"],"jsValue":"__modules__.attrib.Get(__params__.model, footprint_, 'HT_BLDG')"}],"variable":"height"},{"type":14,"ID":"prod-jpympifbdm","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷"}],"selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3"},{"type":1,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3","ID":"prod-2r8ruza9zyv","enabled":true,"print":false,"argCount":1,"args":[{"name":"condition","value":"height > 0","usedVars":["height"],"jsValue":"height_ > 0"}],"children":[{"type":13,"ID":"","parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3~children~6","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":8,"ID":"prod-hdspu8zem","enabled":true,"print":false,"meta":{"module":"make","name":"Extrude"},"argCount":6,"args":[{"name":"var_name","value":"block","jsValue":"block_"},{"name":"__model__"},{"name":"entities","value":"footprint","usedVars":["footprint"],"jsValue":"footprint_"},{"name":"dist","value":"height","usedVars":["height"],"jsValue":"height_"},{"name":"divisions","value":"1","usedVars":[],"jsValue":"1"},{"name":"method","value":"'quads'","jsValue":"'quads'","usedVars":[]}],"variable":"block","selectGeom":false,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~procedure~3~children~6"}]}],"variable":"footprint"},{"type":14,"ID":"prod-4ouyryqprph","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"COMPLETE THE EXPRESSION TO SET THE COLOR OF BLOCKS"}],"selectGeom":false},{"type":14,"ID":"prod-un8tums6il","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"r = 0.9, g = 0.8, b = 0.8"}],"selectGeom":false},{"type":14,"ID":"prod-9wjdt9tk65k","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"\\x7e~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"selectGeom":false},{"type":14,"ID":"prod-lee36pedhs","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"insert code"}],"selectGeom":false},{"type":8,"ID":"prod-mbn83ikduag","enabled":true,"print":false,"meta":{"module":"visualize","name":"Color"},"argCount":4,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"#pg","usedVars":[],"jsValue":"__modules__.query.Get(__params__.model, 'pg', null)"},{"name":"color","value":"[0.9, 0.8, 0.8]","usedVars":[],"jsValue":"[0.9, 0.8, 0.8]"}],"selectGeom":false},{"type":14,"ID":"prod-f7f0tpkxwu","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷"}],"selectGeom":false},{"type":14,"ID":"prod-v65x1yhnmjp","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"Clean up"}]},{"type":8,"ID":"prod-q0z5hpn67ei","enabled":true,"print":false,"meta":{"module":"edit","name":"Delete"},"argCount":4,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"#pg","usedVars":[],"jsValue":"__modules__.query.Get(__params__.model, 'pg', null)"},{"name":"method","value":"'keep_selected'","usedVars":[],"jsValue":"'keep_selected'"}]}],"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"state":{"procedure":[],"show_code":true,"show_func":true},"input":{"name":"input","type":0,"edges":[{"source":{"name":"output","type":1,"edges":["~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0"],"meta":{"mode":0},"parentNode":{"name":"Import Footprint","id":"node_xbyxh47ot1o","position":{"x":5260,"y":5160},"enabled":true,"type":"","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":14,"ID":"prod-7srdxvymvva","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"IMPORT GEOJSON DATA FOR BUGIS FOOTPRINT"}],"selectGeom":false},{"type":14,"ID":"prod-41zd7rnpsgz","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"\\x7e~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"}],"selectGeom":false},{"type":8,"ID":"prod-khi2ple5v4","enabled":true,"print":false,"meta":{"module":"io","name":"Import"},"argCount":4,"args":[{"name":"var_name","value":"footprints_coll","jsValue":"footprints_coll_"},{"name":"__model__"},{"name":"model_data","value":"\"https://mooc-s3cf.s3-ap-southeast-1.amazonaws.com/semantic_modelling/data/bugis_footprint.geojson\"","usedVars":[],"jsValue":"\"https://mooc-s3cf.s3-ap-southeast-1.amazonaws.com/semantic_modelling/data/bugis_footprint.geojson\""},{"name":"data_format","value":"'geojson'","usedVars":[],"jsValue":"'geojson'"}],"variable":"footprints_coll","selectGeom":false},{"type":14,"ID":"prod-nnlu8aqzap","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷"}],"selectGeom":false}],"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"state":{"procedure":[],"show_code":true,"show_func":true},"input":{"name":"input","type":0,"edges":[{"source":"~flowchart~nodes~0~output~edges~0~target~parentNode~output","target":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0~source~parentNode~input","selected":false}],"meta":{"mode":0,"opts":{}},"parentNode":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0~source~parentNode"},"output":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0~source","hasError":false,"hasExecuted":true,"model":6}},"target":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input","selected":false}],"meta":{"mode":0,"opts":{}},"parentNode":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode"},"output":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source","hasError":false,"hasExecuted":true,"model":7}},"target":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target","selected":false}],"meta":{"mode":0,"opts":{}},"parentNode":{"name":"End","id":"node_83tsstco0ct","position":{"x":5140,"y":5400},"enabled":true,"type":"end","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":11,"ID":"Return","meta":{"name":"","module":""},"argCount":2,"args":[{"name":"__model__","value":"","jsValue":""},{"name":"value","value":"","jsValue":"","usedVars":[]}],"print":false,"enabled":true,"selectGeom":false}],"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"state":{"procedure":[],"show_code":true,"show_func":true},"input":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target","output":{"name":"output","type":1,"edges":[],"meta":{"mode":0},"parentNode":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode"},"hasError":false,"hasExecuted":true,"model":8}},"selected":false}],"meta":{"mode":0},"parentNode":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode"},"model":5}},"selected":false}],"meta":{"mode":0},"parentNode":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode"},"hasError":false,"hasExecuted":true,"model":4}},"selected":false},"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0~source~parentNode~input~edges~0"],"meta":{"mode":0},"parentNode":"~flowchart~nodes~0~output~edges~0~target~parentNode"},"model":3}},"selected":false}],"meta":{"mode":0},"parentNode":"~flowchart~nodes~0"},"hasError":false,"hasExecuted":true,"model":2},"~flowchart~nodes~0~output~edges~0~target~parentNode","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0~source~parentNode","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode"],"edges":["~flowchart~nodes~0~output~edges~0","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0~source~parentNode~input~edges~0","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0~target~edges~1~source~parentNode~input~edges~0","~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~output~edges~0"],"functions":[],"ordered":true,"last_updated":"2020-12-28T07:36:45.995Z"},"version":"0.7.1","settings":"{\"normals\":{\"show\":false,\"size\":5},\"axes\":{\"show\":true,\"size\":50},\"grid\":{\"show\":true,\"size\":500,\"pos_x\":0,\"pos_y\":0,\"pos_z\":0,\"pos\":{\"x\":0,\"y\":0,\"z\":0}},\"background\":{\"show\":true,\"background_set\":0},\"positions\":{\"show\":false,\"size\":7},\"tjs_summary\":{\"show\":false},\"gi_summary\":{\"show\":true},\"wireframe\":{\"show\":false},\"camera\":{\"pos\":{\"x\":611.2322340466698,\"y\":-184.63484009657466,\"z\":404.40290162622307},\"target\":{\"x\":152.2173925377266,\"y\":42.27618659720604,\"z\":92.5},\"ortho\":false},\"colors\":{\"viewer_bg\":\"#E6E6E6\",\"position\":\"#000000\",\"position_s\":\"#0033FF\",\"vertex_s\":\"#FFCC00\",\"face_f\":\"#FFFFFF\",\"face_f_s\":\"#4949BD\",\"face_b\":\"#DDDDDD\",\"face_b_s\":\"#00006D\"},\"ambient_light\":{\"show\":true,\"color\":\"#FFFFFF\",\"intensity\":0.5},\"hemisphere_light\":{\"show\":true,\"helper\":false,\"skyColor\":\"#FFFFFF\",\"groundColor\":\"#FFFFFF\",\"intensity\":0.5},\"directional_light\":{\"show\":false,\"helper\":false,\"color\":\"#FFFFFF\",\"intensity\":1,\"shadow\":true,\"azimuth\":90,\"altitude\":45,\"distance\":10,\"type\":\"directional\",\"shadowSize\":3072},\"ground\":{\"show\":false,\"width\":1000,\"length\":1000,\"height\":-0.5,\"color\":\"#FFFFFF\",\"shininess\":0},\"select\":{\"selector\":{\"id\":7,\"name\":\"Polygons\"},\"tab\":0,\"enabledselector\":{\"ps\":true,\"_v\":true,\"_e\":true,\"_w\":true,\"_f\":true,\"pt\":true,\"pl\":true,\"pg\":true,\"co\":true}},\"version\":\"0.4.38\",\"cesium\":{\"imagery\":{\"layer\":\"Open Street Map\",\"terrain\":\"Ellipsoid\",\"apiKey\":{\"here\":\"7vMRjLNCpcOAUQXU61eUp6EFbWCy7WLNmy9qLHO-1Bw\"}},\"camera\":{\"pos\":{\"x\":0,\"y\":0,\"z\":0},\"direction\":{\"x\":0,\"y\":0,\"z\":0},\"up\":{\"x\":0,\"y\":0,\"z\":0},\"right\":{\"x\":0,\"y\":0,\"z\":0}},\"updated\":true,\"time\":{\"date\":\"2020-05-11\"},\"model\":{\"polygonEdge\":true}}}"}