CascadeStudio_3D_Manual
154 строки · 4.5 Кб
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": "column",
38"isClosable": true,
39"reorderEnabled": true,
40"title": "",
41"width": 100,
42"content": [
43{
44"type": "stack",
45"height": 53.6036036036036,
46"isClosable": true,
47"reorderEnabled": true,
48"title": "",
49"activeItemIndex": 0,
50"content": [
51{
52"type": "component",
53"componentName": "cascadeView",
54"title": "CAD View",
55"componentState": {
56"componentName": "cascadeView",
57"MeshRes": 0.1,
58"MeshResRange": [
590.01,
602
61],
62"Cache?": true,
63"Radius": 30,
64"RadiusRange": [
6520,
6640
67]
68},
69"isClosable": false,
70"reorderEnabled": true
71}
72]
73},
74{
75"type": "stack",
76"header": {},
77"isClosable": true,
78"reorderEnabled": true,
79"title": "",
80"activeItemIndex": 0,
81"height": 23.1981981981982,
82"content": [
83{
84"type": "component",
85"componentName": "codeEditor",
86"title": "uneven_chamfer.json",
87"componentState": {
88"code": [
89"function UnevenChamferEdges(shape, dist1, dist2, edgeList, face, keepOriginal) { ",
90" let curChamfer = CacheOp(arguments, () => {",
91" let mkChamfer = new oc.BRepFilletAPI_MakeChamfer(shape);",
92" let foundEdges = 0;",
93" ForEachEdge(shape, (index, edge) => {",
94" if (edgeList.includes(index)) { mkChamfer.Add(dist1, dist2, edge,face); foundEdges++; }",
95" });",
96" if (foundEdges == 0) {",
97" console.error(\"Chamfer Edges Not Found! Make sure you are looking at the object _before_ the Chamfer is applied!\");",
98" return new oc.TopoDS_Solid(shape);",
99" }",
100" return new oc.TopoDS_Solid(mkChamfer.Shape());",
101" });",
102" sceneShapes.push(curChamfer);",
103" if (!keepOriginal) { sceneShapes = Remove(sceneShapes, shape); }",
104" return curChamfer;",
105"}",
106"",
107"",
108"box1 = Box(20,20,20)",
109"box2 = UnevenChamferEdges(box1,1,3,[1,9,5,11],5, false)",
110"",
111"",
112"",
113"",
114"",
115"//Intersection([box2,box3])",
116"",
117"",
118"// box2= UnevenChamferEdges(box1,1,3,[10,3,8,7],4, false)"
119]
120},
121"width": 50,
122"isClosable": false,
123"reorderEnabled": true
124}
125]
126},
127{
128"type": "stack",
129"height": 23.1981981981982,
130"isClosable": true,
131"reorderEnabled": true,
132"title": "",
133"activeItemIndex": 0,
134"content": [
135{
136"type": "component",
137"componentName": "console",
138"title": "Console",
139"componentState": {},
140"height": 20,
141"isClosable": false,
142"reorderEnabled": true
143}
144]
145}
146]
147}
148],
149"isClosable": true,
150"reorderEnabled": true,
151"title": "",
152"openPopouts": [],
153"maximisedItemId": null
154}