CascadeStudio_3D_Manual
163 строки · 4.7 Кб
1{
2"settings": {
3"hasHeaders": true,
4"constrainDragToContainer": true,
5"reorderEnabled": true,
6"selectionEnabled": false,
7"popoutWholeStack": false,
8"blockedPopoutsThrowError": true,
9"closePopoutsOnUnload": true,
10"showPopoutIcon": false,
11"showMaximiseIcon": false,
12"showCloseIcon": false,
13"responsiveMode": "onload",
14"tabOverlapAllowance": 0,
15"reorderOnTabMenuClick": true,
16"tabControlOffset": 10
17},
18"dimensions": {
19"borderWidth": 5,
20"borderGrabWidth": 15,
21"minItemHeight": 10,
22"minItemWidth": 10,
23"headerHeight": 20,
24"dragProxyWidth": 300,
25"dragProxyHeight": 200
26},
27"labels": {
28"close": "close",
29"maximise": "maximise",
30"minimise": "minimise",
31"popout": "open in new window",
32"popin": "pop in",
33"tabDropdown": "additional tabs"
34},
35"content": [
36{
37"type": "row",
38"isClosable": true,
39"reorderEnabled": true,
40"title": "",
41"content": [
42{
43"type": "stack",
44"width": 50.163398692810446,
45"isClosable": true,
46"reorderEnabled": true,
47"title": "",
48"activeItemIndex": 0,
49"content": [
50{
51"type": "component",
52"componentName": "codeEditor",
53"title": "gherkin_profile_correct.json",
54"componentState": {
55"code": [
56"function equationGherkin(x) ",
57"{",
58" let pt1 = x*x - 144*x + 5184;",
59" let pt2 = pt1 / 11664;",
60" let pt3 = 1-pt2;",
61" let pt4 = Math.sqrt(pt3);",
62" let y = 28.25 * pt4;",
63" return y",
64"}",
65"",
66"// evaluate the function starting a height h=0",
67"let h = 0;",
68"let c0 = [equationGherkin(h),h];",
69"let calculatedGherkin = new Sketch(c0)",
70"",
71"for (let hi = 1; hi <= 180; hi+=4)",
72"{",
73" calculatedGherkin.LineTo( [ equationGherkin(hi) , hi])",
74"",
75"}",
76"calculatedGherkin.LineTo([0,180])",
77"calculatedGherkin.LineTo([0,0])",
78"calculatedGherkin.LineTo(c0);",
79"calculatedGherkin.End();",
80"// calculatedGherkin.Face();",
81"",
82"// revolve the sketch ",
83"Rotate( [1,0,0],90,",
84" Revolve(calculatedGherkin.Face()",
85" ,360,[0,1,0], true, true",
86" )",
87" )"
88]
89},
90"width": 50,
91"isClosable": false,
92"reorderEnabled": true
93}
94]
95},
96{
97"type": "column",
98"isClosable": true,
99"reorderEnabled": true,
100"title": "",
101"width": 49.83660130718954,
102"content": [
103{
104"type": "stack",
105"height": 80,
106"isClosable": true,
107"reorderEnabled": true,
108"title": "",
109"activeItemIndex": 0,
110"content": [
111{
112"type": "component",
113"componentName": "cascadeView",
114"title": "CAD View",
115"componentState": {
116"componentName": "cascadeView",
117"MeshRes": 0.1,
118"MeshResRange": [
1190.01,
1202
121],
122"Cache?": true,
123"Radius": 30,
124"RadiusRange": [
12520,
12640
127]
128},
129"isClosable": false,
130"reorderEnabled": true
131}
132]
133},
134{
135"type": "stack",
136"height": 20,
137"isClosable": true,
138"reorderEnabled": true,
139"title": "",
140"activeItemIndex": 0,
141"content": [
142{
143"type": "component",
144"componentName": "console",
145"title": "Console",
146"componentState": {},
147"height": 20,
148"isClosable": false,
149"reorderEnabled": true
150}
151]
152}
153]
154}
155]
156}
157],
158"isClosable": true,
159"reorderEnabled": true,
160"title": "",
161"openPopouts": [],
162"maximisedItemId": null
163}