-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstairvrcam
1 lines (1 loc) · 14 KB
/
stairvrcam
1
{"name":"stairvrcam","author":"new_user","flowchart":{"name":"Untitled","description":"","language":"js","meta":{"selected_nodes":[0]},"nodes":[{"name":"Start","id":"node_gj32zbc2hwa","position":{"x":5350,"y":5000},"enabled":true,"type":"start","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true}],"state":{"procedure":[],"show_code":false,"show_func":false,"hasExecuted":true},"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":"Node","id":"node_pq5pzhellkn","position":{"x":5350,"y":5200},"enabled":true,"type":"","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true},{"type":4,"ID":"prod-s2sw0w1u6y","enabled":true,"print":false,"argCount":2,"args":[{"name":"item","value":"i","jsValue":"i_"},{"name":"list","value":"range(1, 20)","default":[],"usedVars":[],"jsValue":"range(__debug__, 1, 20)"}],"children":[{"type":13,"ID":"prod-q0gew86j7h","parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~procedure~1","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":8,"ID":"prod-99m5uktc1y6","enabled":true,"print":false,"meta":{"module":"pattern","name":"Rectangle"},"argCount":4,"args":[{"name":"var_name","value":"grid","jsValue":"grid_"},{"name":"__model__","default":0},{"name":"origin","default":0,"value":"[35, 0, i * 5]","usedVars":["i"],"jsValue":"[35, 0, i_ * 5]"},{"name":"size","default":0,"value":"[50, 10]","usedVars":[],"jsValue":"[50, 10]"}],"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~procedure~1","variable":"grid","selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~procedure~1","ID":"prod-2a4smzm0vv8","enabled":true,"print":false,"meta":{"module":"make","name":"Polygon"},"argCount":3,"args":[{"name":"var_name","value":"pg","jsValue":"pg_"},{"name":"__model__","default":0},{"name":"positions","value":"grid","default":0,"usedVars":["grid"],"jsValue":"grid_"}],"variable":"pg","selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~procedure~1","ID":"prod-4juhl6i4q95","enabled":true,"print":false,"meta":{"module":"query","name":"Get"},"argCount":4,"args":[{"name":"var_name","value":"edges","jsValue":"edges_"},{"name":"__model__"},{"name":"ent_type_enum","value":"'_e'","jsValue":"'_e'","usedVars":[]},{"name":"entities","value":"pg","jsValue":"pg_","usedVars":["pg"]}],"variable":"edges","selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~procedure~1","ID":"prod-ll41uytpjhe","enabled":true,"print":false,"meta":{"module":"calc","name":"Centroid"},"argCount":4,"args":[{"name":"var_name","value":"cn","jsValue":"cn_"},{"name":"__model__"},{"name":"entities","value":"edges[1]","usedVars":["edges"],"jsValue":"edges_[pythonList(1, edges_.length)]"},{"name":"method","value":"'ps_average'","usedVars":[],"jsValue":"'ps_average'"}],"variable":"cn","selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~procedure~1","ID":"prod-03qvmdam02r7","enabled":true,"print":false,"meta":{"module":"modify","name":"Scale"},"argCount":5,"args":[{"name":"__none__"},{"name":"__model__","default":0},{"name":"entities","value":"edges[1]","default":0,"usedVars":["edges"],"jsValue":"edges_[pythonList(1, edges_.length)]"},{"name":"origin","value":"cn","default":0,"usedVars":["cn"],"jsValue":"cn_"},{"name":"scale","value":"2.9","default":0,"usedVars":[],"jsValue":"2.9"}],"selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~procedure~1","ID":"prod-93h9uu2qtdi","enabled":true,"print":false,"meta":{"module":"modify","name":"Rotate"},"argCount":5,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"pg","usedVars":["pg"],"jsValue":"pg_"},{"name":"ray","value":"XY","usedVars":[],"jsValue":"JSON.parse(JSON.stringify(XY))"},{"name":"angle","value":"(PI / 8) * i","usedVars":["i"],"jsValue":"(JSON.parse(JSON.stringify(PI)) / 8) * i_"}],"selectGeom":false}],"variable":"i","selectGeom":false}],"state":{"procedure":[],"show_code":true,"show_func":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":"End","id":"node_8cqi6sd8xcq","position":{"x":5350,"y":5400},"enabled":true,"type":"end","procedure":[{"type":13,"ID":"","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true},{"type":14,"ID":"prod-srdkmj1h5jf","enabled":true,"print":false,"argCount":1,"args":[{"name":"comment","value":"VR cam plane"}],"selectGeom":false},{"type":8,"ID":"prod-xit1o7zkie8","enabled":true,"print":false,"meta":{"module":"pattern","name":"Arc"},"argCount":6,"args":[{"name":"var_name","value":"inner_arc","jsValue":"inner_arc_"},{"name":"__model__"},{"name":"origin","value":"[0, 0, 0]","usedVars":[],"jsValue":"[0, 0, 0]"},{"name":"radius","value":"10","usedVars":[],"jsValue":"10"},{"name":"num_positions","value":"21","usedVars":[],"jsValue":"21"},{"name":"arc_angle","value":"(PI / 8) * 20","usedVars":[],"jsValue":"(JSON.parse(JSON.stringify(PI)) / 8) * 20"}],"variable":"inner_arc","selectGeom":false},{"type":8,"ID":"prod-o7oxotjzzjg","enabled":true,"print":false,"meta":{"module":"pattern","name":"Arc"},"argCount":6,"args":[{"name":"var_name","value":"outer_arc","jsValue":"outer_arc_"},{"name":"__model__"},{"name":"origin","value":"[0, 0, 0]","usedVars":[],"jsValue":"[0, 0, 0]"},{"name":"radius","value":"60","usedVars":[],"jsValue":"60"},{"name":"num_positions","value":"21","usedVars":[],"jsValue":"21"},{"name":"arc_angle","value":"(PI / 8) * 20","usedVars":[],"jsValue":"(JSON.parse(JSON.stringify(PI)) / 8) * 20"}],"variable":"outer_arc","selectGeom":false},{"type":4,"ID":"prod-2qzgm0r62se","enabled":true,"print":false,"argCount":2,"args":[{"name":"item","value":"i","jsValue":"i_"},{"name":"list","value":"range(0, 21)","default":[],"usedVars":[],"jsValue":"range(__debug__, 0, 21)"}],"children":[{"type":13,"ID":"prod-pvxsmxgs3wl","parent":"~flowchart~nodes~0~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":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","ID":"prod-t6c7vrds76","enabled":true,"print":false,"meta":{"module":"modify","name":"Move"},"argCount":4,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"inner_arc[i]","usedVars":["inner_arc","i"],"jsValue":"inner_arc_[pythonList(i_, inner_arc_.length)]"},{"name":"vectors","value":"[0, 0, i * 5 + 25]","usedVars":["i"],"jsValue":"[0, 0, i_ * 5 + 25]"}],"selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","ID":"prod-hrmjrmbes4","enabled":true,"print":false,"meta":{"module":"modify","name":"Move"},"argCount":4,"args":[{"name":"__none__"},{"name":"__model__"},{"name":"entities","value":"outer_arc[i]","usedVars":["outer_arc","i"],"jsValue":"outer_arc_[pythonList(i_, outer_arc_.length)]"},{"name":"vectors","value":"[0, 0, i * 5 + 25]","usedVars":["i"],"jsValue":"[0, 0, i_ * 5 + 25]"}],"selectGeom":false},{"type":1,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4","ID":"prod-mrzxcqk1ngo","enabled":true,"print":false,"argCount":1,"args":[{"name":"condition","value":"i > 0","usedVars":["i"],"jsValue":"i_ > 0"}],"children":[{"type":13,"ID":"prod-1x7h3yntuva","parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4~children~3","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false},{"type":8,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4~children~3","ID":"prod-8o43vxvw5p7","enabled":true,"print":false,"meta":{"module":"make","name":"Polygon"},"argCount":3,"args":[{"name":"var_name","value":"pg","jsValue":"pg_"},{"name":"__model__"},{"name":"entities","value":"[inner_arc[i - 1], outer_arc[i - 1], outer_arc[i], inner_arc[i]]","usedVars":["inner_arc","outer_arc","i"],"jsValue":"[inner_arc_[pythonList(i_ - 1, inner_arc_.length)], outer_arc_[pythonList(i_ - 1, outer_arc_.length)], outer_arc_[pythonList(i_, outer_arc_.length)], inner_arc_[pythonList(i_, inner_arc_.length)]]"}],"variable":"pg","selectGeom":false},{"type":0,"parent":"~flowchart~nodes~0~output~edges~0~target~parentNode~output~edges~0~target~parentNode~procedure~4~children~3","ID":"prod-6kufmlgsbp6","enabled":true,"print":false,"argCount":2,"args":[{"name":"var_name","value":"pg@vr_cam","jsValue":"pg_@vr_cam","usedVars":["pg"]},{"name":"value","value":"true","usedVars":[],"jsValue":"true"}],"variable":null,"selectGeom":false}],"selectGeom":false}],"variable":"i","selectGeom":false},{"type":11,"ID":"Return","meta":{"name":"","module":""},"argCount":2,"args":[{"name":"__model__","value":"","default":0},{"name":"value","value":"","default":0,"usedVars":[]}],"print":false,"enabled":true}],"state":{"procedure":[],"show_code":true,"show_func":true,"hasExecuted":true},"input":"~flowchart~nodes~0~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"},"hasError":false,"hasExecuted":true,"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"model":4}},"selected":false}],"meta":{"mode":0},"parentNode":"~flowchart~nodes~0~output~edges~0~target~parentNode"},"hasError":false,"hasExecuted":true,"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"model":3}},"selected":false}],"meta":{"mode":0},"parentNode":"~flowchart~nodes~0"},"hasError":false,"hasExecuted":true,"localFunc":[{"type":13,"ID":"local_func_blank","meta":{"name":"","module":""},"argCount":0,"args":[],"print":false,"enabled":true,"selectGeom":false}],"model":2},"~flowchart~nodes~0~output~edges~0~target~parentNode","~flowchart~nodes~0~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"],"functions":[],"ordered":true,"id":"e75c4f8e-24f6-09ce-0297-b719e30336e7","last_updated":"2021-08-05T04:00:44.785Z"},"version":"0.8.3","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\":false,\"background_set\":0},\"positions\":{\"show\":true,\"size\":4.4},\"tjs_summary\":{\"show\":false},\"gi_summary\":{\"show\":false},\"wireframe\":{\"show\":false},\"camera\":{\"pos\":{\"x\":90.39876006758094,\"y\":31.360065639395458,\"z\":24.290233586612803},\"target\":{\"x\":0,\"y\":0,\"z\":0},\"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\":2048},\"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.5.77\",\"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}},\"time\":{\"date\":\"2020-05-11T04:37\"},\"updated\":true,\"model\":{\"polygonEdge\":true}},\"aframe\":{\"camera\":{\"position\":{\"x\":-31.39214178125041,\"y\":5,\"z\":-44.274992788141795},\"rotation\":{\"x\":-2.864788975654114,\"y\":32.88777744050929,\"z\":0},\"acceleration\":444},\"background\":{\"background_set\":1,\"background_url\":\"\",\"background_position\":{\"x\":0,\"y\":0,\"z\":0},\"background_rotation\":0},\"ambient_light\":{\"show\":true,\"color\":\"#FFFFFF\",\"intensity\":0.15},\"hemisphere_light\":{\"show\":true,\"skyColor\":\"#FFFFFF\",\"groundColor\":\"#FFFFFF\",\"intensity\":0.15},\"directional_light\":{\"show\":true,\"color\":\"#FFFFFF\",\"intensity\":1,\"azimuth\":90,\"altitude\":45,\"shadowSize\":2048},\"ground\":{\"show\":false,\"width\":1000,\"length\":1000,\"height\":-0.5,\"color\":\"#FFFFFF\",\"shininess\":0},\"vr\":{\"background_url\":\"\",\"background_rotation\":0,\"foreground_url\":\"\",\"foreground_rotation\":0},\"updated\":true},\"geo\":{\"imagery\":{\"layer\":\"Open Street Map\",\"terrain\":\"Ellipsoid\"},\"camera\":{\"pos\":{\"x\":-1527142.4490494903,\"y\":6191617.837321442,\"z\":142364.97767609853},\"rot\":{\"x\":-0.49182596559228686,\"y\":-0.3671635937802309,\"z\":0.06127488275256588}},\"time\":{\"date\":\"2021-02-17T06:17\"},\"model\":{\"polygonEdge\":false},\"updated\":true}}"}