Skip to content

Commit df3bd03

Browse files
committed
Merge branch 'dev' of https://github.com/chuongmep/OpenMEP into dev
2 parents 1d0e992 + ecc97ab commit df3bd03

File tree

7 files changed

+684
-0
lines changed

7 files changed

+684
-0
lines changed

OpenMEPSandbox/Geometry/Geometry.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ private Geometry()
1111
/// </summary>
1212
/// <param name="geometry">The geometry to extract the top surface from.</param>
1313
/// <returns name="surfaces">A list of the top surface(s) of the geometry.</returns>
14+
/// <example>
15+
/// ![](../OpenMEPPage/geometry/dyn/pic/Geometry.TopSurfaces.png)
16+
/// </example>
1417
public static List<Autodesk.DesignScript.Geometry.Surface> TopSurfaces(
1518
Autodesk.DesignScript.Geometry.Geometry geometry)
1619
{
@@ -34,6 +37,9 @@ private Geometry()
3437
/// </summary>
3538
/// <param name="geometry">The geometry to extract the bottom surface from.</param>
3639
/// <returns name="surfaces">A list of the bottom surface(s) of the geometry.</returns>
40+
/// <example>
41+
/// ![](../OpenMEPPage/geometry/dyn/pic/Geometry.BottomSurfaces.png)
42+
/// </example>
3743
public static List<Autodesk.DesignScript.Geometry.Surface> BottomSurfaces(
3844
Autodesk.DesignScript.Geometry.Geometry geometry)
3945
{
@@ -57,6 +63,9 @@ private Geometry()
5763
/// </summary>
5864
/// <param name="geometry">The geometry to extract side surfaces from.</param>
5965
/// <returns name="surface">A list of side surfaces of the geometry.</returns>
66+
/// <example>
67+
/// ![](../OpenMEPPage/geometry/dyn/pic/Geometry.SideSurface.png)
68+
/// </example>
6069
public static List<Autodesk.DesignScript.Geometry.Surface> SideSurface(
6170
Autodesk.DesignScript.Geometry.Geometry geometry)
6271
{
Lines changed: 225 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,225 @@
1+
{
2+
"Uuid": "ed60bf4d-6490-4b9f-ae7e-7542b428ce3d",
3+
"IsCustomNode": false,
4+
"Description": "",
5+
"Name": "Geometry.BottomSurfaces",
6+
"ElementResolver": {
7+
"ResolutionMap": {}
8+
},
9+
"Inputs": [],
10+
"Outputs": [],
11+
"Nodes": [
12+
{
13+
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
14+
"Id": "803669dd9d684e4caf61cd169ed7345f",
15+
"NodeType": "FunctionNode",
16+
"Inputs": [
17+
{
18+
"Id": "8575570dacc34ceeaf11639cb86440ac",
19+
"Name": "width",
20+
"Description": "Width of cuboid\n\ndouble\nDefault value : 1",
21+
"UsingDefaultValue": true,
22+
"Level": 2,
23+
"UseLevels": false,
24+
"KeepListStructure": false
25+
},
26+
{
27+
"Id": "0c9e49cb450b4e2d818754d895ece07e",
28+
"Name": "length",
29+
"Description": "Length of cuboid\n\ndouble\nDefault value : 1",
30+
"UsingDefaultValue": true,
31+
"Level": 2,
32+
"UseLevels": false,
33+
"KeepListStructure": false
34+
},
35+
{
36+
"Id": "2f49ee291aa24dec95132767584c39d0",
37+
"Name": "height",
38+
"Description": "Height of cuboid\n\ndouble\nDefault value : 1",
39+
"UsingDefaultValue": true,
40+
"Level": 2,
41+
"UseLevels": false,
42+
"KeepListStructure": false
43+
}
44+
],
45+
"Outputs": [
46+
{
47+
"Id": "bff59104c71549e1affb95c397bbdcb1",
48+
"Name": "Cuboid",
49+
"Description": "Cuboid created by lengths",
50+
"UsingDefaultValue": false,
51+
"Level": 2,
52+
"UseLevels": false,
53+
"KeepListStructure": false
54+
}
55+
],
56+
"FunctionSignature": "Autodesk.DesignScript.Geometry.Cuboid.ByLengths@double,double,double",
57+
"Replication": "Auto",
58+
"Description": "Create a Cuboid centered at WCS origin, with width, length, and height.\n\nCuboid.ByLengths (width: double = 1, length: double = 1, height: double = 1): Cuboid"
59+
},
60+
{
61+
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
62+
"Id": "036702ab4cb942df981a83c0a75a7260",
63+
"NodeType": "CodeBlockNode",
64+
"Inputs": [],
65+
"Outputs": [
66+
{
67+
"Id": "062f7b4cd35d4e53a95265f9fb456ea9",
68+
"Name": "",
69+
"Description": "Value of expression at line 1",
70+
"UsingDefaultValue": false,
71+
"Level": 2,
72+
"UseLevels": false,
73+
"KeepListStructure": false
74+
}
75+
],
76+
"Replication": "Disabled",
77+
"Description": "Allows for DesignScript code to be authored directly",
78+
"Code": "10;"
79+
},
80+
{
81+
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
82+
"Id": "cf8085e99f3f4c31afdde54764bf4e24",
83+
"NodeType": "FunctionNode",
84+
"Inputs": [
85+
{
86+
"Id": "923e304cf0c146f48dd0cff466527952",
87+
"Name": "geometry",
88+
"Description": "The geometry to extract the bottom surface from.\n\nGeometry",
89+
"UsingDefaultValue": false,
90+
"Level": 2,
91+
"UseLevels": false,
92+
"KeepListStructure": false
93+
}
94+
],
95+
"Outputs": [
96+
{
97+
"Id": "8073a314caf544079abfb9a4393d9b84",
98+
"Name": "surfaces",
99+
"Description": "A list of the bottom surface(s) of the geometry.",
100+
"UsingDefaultValue": false,
101+
"Level": 2,
102+
"UseLevels": false,
103+
"KeepListStructure": false
104+
}
105+
],
106+
"FunctionSignature": "OpenMEPSandbox.Geometry.Geometry.BottomSurfaces@Autodesk.DesignScript.Geometry.Geometry",
107+
"Replication": "Auto",
108+
"Description": "Returns the bottom surface of the provided geometry.\n\nGeometry.BottomSurfaces (geometry: Geometry): Surface[]"
109+
}
110+
],
111+
"Connectors": [
112+
{
113+
"Start": "bff59104c71549e1affb95c397bbdcb1",
114+
"End": "923e304cf0c146f48dd0cff466527952",
115+
"Id": "eb6c27c31ccc4a1ba1fbf4fe579ad8d3",
116+
"IsHidden": "False"
117+
},
118+
{
119+
"Start": "062f7b4cd35d4e53a95265f9fb456ea9",
120+
"End": "8575570dacc34ceeaf11639cb86440ac",
121+
"Id": "43e98ebc1acf46d392d4f4e326d3327b",
122+
"IsHidden": "False"
123+
},
124+
{
125+
"Start": "062f7b4cd35d4e53a95265f9fb456ea9",
126+
"End": "0c9e49cb450b4e2d818754d895ece07e",
127+
"Id": "3295f4d009dc4ad0a063cb5c6fe71588",
128+
"IsHidden": "False"
129+
},
130+
{
131+
"Start": "062f7b4cd35d4e53a95265f9fb456ea9",
132+
"End": "2f49ee291aa24dec95132767584c39d0",
133+
"Id": "3caf6340a47d4ef1ad5883fd5228e097",
134+
"IsHidden": "False"
135+
}
136+
],
137+
"Dependencies": [],
138+
"NodeLibraryDependencies": [
139+
{
140+
"Name": "OpenMEP",
141+
"Version": "1.0.0",
142+
"ReferenceType": "Package",
143+
"Nodes": [
144+
"cf8085e99f3f4c31afdde54764bf4e24"
145+
]
146+
}
147+
],
148+
"Thumbnail": "",
149+
"GraphDocumentationURL": null,
150+
"ExtensionWorkspaceData": [
151+
{
152+
"ExtensionGuid": "28992e1d-abb9-417f-8b1b-05e053bee670",
153+
"Name": "Properties",
154+
"Version": "2.18",
155+
"Data": {}
156+
}
157+
],
158+
"Author": "",
159+
"Linting": {
160+
"activeLinter": "None",
161+
"activeLinterId": "7b75fb44-43fd-4631-a878-29f4d5d8399a",
162+
"warningCount": 0,
163+
"errorCount": 0
164+
},
165+
"Bindings": [],
166+
"View": {
167+
"Dynamo": {
168+
"ScaleFactor": 1.0,
169+
"HasRunWithoutCrash": true,
170+
"IsVisibleInDynamoLibrary": true,
171+
"Version": "2.18.0.4470",
172+
"RunType": "Automatic",
173+
"RunPeriod": "1000"
174+
},
175+
"Camera": {
176+
"Name": "_Background Preview",
177+
"EyeX": -17.0,
178+
"EyeY": 24.0,
179+
"EyeZ": 50.0,
180+
"LookX": 12.0,
181+
"LookY": -13.0,
182+
"LookZ": -58.0,
183+
"UpX": 0.0,
184+
"UpY": 1.0,
185+
"UpZ": 0.0
186+
},
187+
"ConnectorPins": [],
188+
"NodeViews": [
189+
{
190+
"Id": "803669dd9d684e4caf61cd169ed7345f",
191+
"Name": "Cuboid.ByLengths",
192+
"IsSetAsInput": false,
193+
"IsSetAsOutput": false,
194+
"Excluded": false,
195+
"ShowGeometry": false,
196+
"X": 430.0,
197+
"Y": 268.0
198+
},
199+
{
200+
"Id": "036702ab4cb942df981a83c0a75a7260",
201+
"Name": "Code Block",
202+
"IsSetAsInput": false,
203+
"IsSetAsOutput": false,
204+
"Excluded": false,
205+
"ShowGeometry": true,
206+
"X": 194.0,
207+
"Y": 286.0
208+
},
209+
{
210+
"Id": "cf8085e99f3f4c31afdde54764bf4e24",
211+
"Name": "Geometry.BottomSurfaces",
212+
"IsSetAsInput": false,
213+
"IsSetAsOutput": false,
214+
"Excluded": false,
215+
"ShowGeometry": true,
216+
"X": 678.95464362850964,
217+
"Y": 295.64794816414684
218+
}
219+
],
220+
"Annotations": [],
221+
"X": -50.264999999999986,
222+
"Y": -107.08749999999998,
223+
"Zoom": 1.1575
224+
}
225+
}

0 commit comments

Comments
 (0)