-
0
1
1
- 633965693408813546
-
0
6
43
- true
- true
- 8bf59ff8-c621-4ea5-bf2f-bbc6e3cbc0a3
- Shaded
- contours-43.ghx
- 633797260787590000
- 0
-
49
39
- 0.8
- 0
- 21
- 3e8ca6be-fda8-4aaf-b5c0-3c54c8bb7312
- Number
- Distance
- 4b66292f-f1c9-4365-a787-98a42fd36c0d
- true
- true
- true
- 0
- 1
-
47
478
60
24
-
47
478
60
24
-
76.75
490.375
- false
- 2
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
- //Make Rhino contours - TypeA/specific output
//Written by Giulio Piacentino
//Version 2009 06 04
if(input != null && axis != null && dist != 0.0){
IOnGeometry rightTypeInput;
//Cast to the right type
if(input is IOnGeometry)
rightTypeInput = (IOnGeometry) input;
else if(input is IOnCircle){
OnNurbsCurve crv = new OnNurbsCurve();
((IOnCircle) input).GetNurbForm(ref crv);
rightTypeInput = crv;
} else if(input is IOnLine){
rightTypeInput = new OnLineCurve((IOnLine) input);
} else if(input is Grasshopper.Kernel.Types.IGH_GeometricGoo){
((Grasshopper.Kernel.Types.IGH_GeometricGoo) input).CastTo(out rightTypeInput);
} else {
//Do not know this type
Print(input.GetType().Name + " is a type which is not handled");
MeshOut = null;
BrepOut = null;
Pts = null;
return;
}
//Settings
MRhinoContourInput inp = new MRhinoContourInput();
inp.m_AssignLayerBy = 0; //0=CurrentLayer, 1=InputObject
inp.m_bAddOutputToDocument = false;
inp.m_bGroupByContourPlane = false;
inp.m_JoinCurves = 1; //0=NoJoin, 1=ByPolySurface, 2=ByContourPlane
inp.m_limit_range = true;
inp.m_geom = new IOnGeometry[]{ (rightTypeInput) };
inp.m_basept = axis.from;
inp.m_endpt = axis.to;
inp.m_interval = dist;
//Output values
OnPolyline[] plineArray;
OnCurve[] crvArray;
ArrayOn3dPoint ptsArray;
RhUtil.MakeRhinoContours(inp, out plineArray, out crvArray, out ptsArray);
//Set outgoing values
MeshOut = plineArray;
BrepOut = crvArray;
Pts = ptsArray;
} else {
//Nothing to set
MeshOut = null;
BrepOut = null;
Pts = null;
}
-
- 0
- contours
- f8997b28-aee8-4602-bc36-c5b313428a75
- 1
- true
- true
- true
- longest_list
-
328
152
117
84
-
364
154
24
80
-
376
194
- false
- 3
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable x
- Script Variable x
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable y
- Script Variable y
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 4
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Output parameter A
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result Data
- Output parameter Data
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result Data
- Output parameter Data
- true
- false
- input
- 19c46083-1d90-4aa3-9376-6f1abfa04e7d
- true
- true
- true
- 1
- bbcaa28a-7882-4cac-b10a-76c9edceb172
- true
-
330
154
34
27
-
330
154
34
27
-
347
167.3333
- false
- axis
- b83b1392-0053-4760-b007-bdd61896e080
- true
- true
- true
- 1
- f9b75be6-03d2-48a1-a9e0-1f4beda60eaf
- e6bfd14e-2096-43a2-bd40-78c493394544
- true
-
330
181
34
26
-
330
181
34
26
-
347
194
- false
- dist
- ebc27ec5-29fa-4339-991a-de0ca5a74227
- true
- true
- true
- 1
- 4b66292f-f1c9-4365-a787-98a42fd36c0d
- 19ff81a2-dc4f-4035-8de9-26224c561321
- true
-
330
207
34
27
-
330
207
34
27
-
347
220.6667
- false
- out
- ee8c7948-fa4d-4175-9d60-83f3015474c1
- true
- true
- true
- 0
- 0
-
388
154
55
20
-
388
154
55
20
-
415.5
164
- false
- MeshOut
- 8e3e9afc-cd63-4256-83bd-ddb432f4a2b5
- true
- true
- true
- 0
-
388
174
55
20
-
388
174
55
20
-
415.5
184
- false
- BrepOut
- 290d387f-7c6e-46f0-a2ac-b053d17b2d42
- true
- true
- true
- 0
-
388
194
55
20
-
388
194
55
20
-
415.5
204
- false
- Pts
- 5380466b-53a5-4c72-8193-bef6ef9f7c65
- true
- true
- true
- 0
-
388
214
55
20
-
388
214
55
20
-
415.5
224
- false
- 8529dbdf-9b6f-42e9-8e1f-c7a2bde56a70
- Line
- Axis
- f9b75be6-03d2-48a1-a9e0-1f4beda60eaf
- true
- true
- true
- 0
- 1
-
46
457
60
24
-
46
457
60
24
-
75.75
469.375
- false
-
-45.5849209934439
-63.4102991666929
0
15.0701689911391
16.1840182512717
0
- dde71aef-d6ed-40a6-af98-6b0673983c82
- Curve
- Crv
- be934fb6-bc97-4a35-b7dc-26a5dfd512a2
- false
- true
- true
- longest_list
-
58
314
64
64
-
78
316
24
60
-
90
346
- false
- V
- ce9ccb0f-44fd-4968-97dc-8f911f1ee919
- true
- true
- true
- 1
- 0
- 4
-
60
316
18
20
-
60
316
18
20
-
69
326
- false
-
-34.052669753058
-27.8644193458834
0
-
-22.2756646267879
-25.93688226019
0
-
-26.6289662979675
-18.0719884269713
0
-
-16.5522378825692
-15.5590025925354
0
- D
- 98edc651-db33-455b-ad3e-1f2ba9dfae80
- true
- true
- true
- 0
- 1
-
60
336
18
20
-
60
336
18
20
-
69
346
- false
- 3
- P
- dc8b3990-158d-4433-8e3f-bf20c233f2d0
- true
- true
- true
- 0
- 1
- false
-
60
356
18
20
-
60
356
18
20
-
69
366
- false
- false
- C
- 0d642e38-7a7f-41b9-b246-247e12dcc6da
- true
- true
- true
- 0
- 0
- false
-
102
316
18
20
-
102
316
18
20
-
111
326
- false
- L
- fdce06ff-5bc5-4ef0-a63f-e9d18bcc443e
- true
- true
- true
- 0
- 0
-
102
336
18
20
-
102
336
18
20
-
111
346
- false
- D
- 84540a7f-ff79-49d6-9b60-cef7f7f47ea8
- true
- true
- true
- 0
- 0
-
102
356
18
20
-
102
356
18
20
-
111
366
- false
- 8529dbdf-9b6f-42e9-8e1f-c7a2bde56a70
- Line
- Line
- f7cce528-0eff-42bf-a5df-55fb57e6bb3d
- false
- true
- true
- 0
- 1
-
42
175
60
24
-
42
175
60
24
-
71.5
187.25
- false
-
-15.2955623071426
-33.7157905502056
0
-4.22322340618115
-19.4470359648432
0
- 04d3eace-deaa-475e-9e69-8f804d687998
- Circular Arc
- Arc
- 4e046643-ac95-465e-ba36-4e2490a2236d
- false
- true
- true
- 0
- 1
-
42
206
60
24
-
42
206
60
24
-
71.5
218
- false
-
-17.1553344421925
-23.4999204842508
0
0.218322359273993
-0.975876707090111
0
0.975876707090111
0.218322359273993
0
- 13.896910421537609
- 0
- 1.2092856812722046
- 6db039c4-cad1-4549-bd45-e31cb0f71692
- Twisted Box
- TBox
- 62548248-406e-4c1d-9773-2a0a42ba0855
- true
- true
- true
- 0
- 1
-
42
144
60
24
-
42
144
60
24
-
71.5
156.5
- false
-
-21.0298593202714
-51.1238027662152
0
-
-17.9152871548283
-41.160846876101
0
-
-40.0937940514444
-36.0091334674847
0
-
-40.6949074817538
-48.6523836138503
0
-
-21.0298593202714
-51.1238027662152
15.1290897038676
-
-17.9152871548283
-41.160846876101
19.1434718784572
-
-40.0937940514444
-36.0091334674847
23.6051661106772
-
-40.6949074817538
-48.6523836138503
10.788168148951
- 0a391eac-5048-443c-9c1b-f592299b6dd6
- Mesh Sphere
- Sphere
- b4bc33a5-8de5-4569-9cba-b45c26c9e196
- false
- true
- true
- longest_list
-
58
209
65
84
-
78
211
24
80
-
90
251
- false
- B
- 732c364d-a200-4876-ac22-44ea5266cc46
- true
- true
- true
- 0
- 1
-
60
211
18
20
-
60
211
18
20
-
69
221
- false
-
-9.33740576672269
9.1110866310947
0
0.873228307639432
-0.487311320140599
0
-0.487311320140599
-0.873228307639432
0
- R
- 8391af34-4e0b-4730-9839-86ad668bc15a
- true
- true
- true
- 0
- 1
-
60
231
18
20
-
60
231
18
20
-
69
241
- false
- 12
- U
- b02d79c7-024b-4656-bb28-df40c9dc2c0f
- true
- true
- true
- 0
- 1
-
60
251
18
20
-
60
251
18
20
-
69
261
- false
- 3
- V
- 25569bf8-854c-4ae1-b090-158b14f8198f
- true
- true
- true
- 0
- 1
-
60
271
18
20
-
60
271
18
20
-
69
281
- false
- 3
- M
- 5318bc14-f20e-49ff-8361-0a8f07bb4e1e
- true
- true
- true
- 0
- 0
-
102
211
19
80
-
102
211
19
80
-
111.5
251
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 36dc9c23-83b9-4c85-9e63-0f9e8ff97e5f
- true
- true
- true
- 0
- Make Rhino contours from geometry
including meshes, polysurfaces, lines
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
15
13
287
42
-
15
13
287
42
-
15
13
- false
- Microsoft Sans Serif
- 10
- false
- false
- 72a29b54-2e48-474b-a400-d2124c4edf79
- Param Viewer
- false
- 0
- Viewer
- 930dea6a-11f7-4c55-b0e3-500463424e27
- true
- true
- true
- 2
- 1
- 8e3e9afc-cd63-4256-83bd-ddb432f4a2b5
-
520
80
200
95
-
520
80
200
95
-
519.9999
79.74998
- false
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
- //Make Rhino contours - TypeB/simple output
//Written by Giulio Piacentino
//Version 2009 06 04
if(input != null && axis != null && dist != 0.0){
IOnGeometry rightTypeInput;
//Cast to the right type
if(input is IOnGeometry)
rightTypeInput = (IOnGeometry) input;
else if(input is IOnCircle){
OnNurbsCurve crv = new OnNurbsCurve();
((IOnCircle) input).GetNurbForm(ref crv);
rightTypeInput = crv;
} else if(input is IOnLine){
rightTypeInput = new OnLineCurve((IOnLine) input);
} else if(input is Grasshopper.Kernel.Types.IGH_GeometricGoo){
((Grasshopper.Kernel.Types.IGH_GeometricGoo) input).CastTo(out rightTypeInput);
} else {
//Do not know this type
Print(input.GetType().Name + " is a type which is not handled");
geomOut = null;
return;
}
//Settings
MRhinoContourInput inp = new MRhinoContourInput();
inp.m_AssignLayerBy = 0; //0=CurrentLayer, 1=InputObject
inp.m_bAddOutputToDocument = false;
inp.m_bGroupByContourPlane = false;
inp.m_JoinCurves = 1; //0=NoJoin, 1=ByPolySurface, 2=ByContourPlane
inp.m_limit_range = true;
inp.m_geom = new IOnGeometry[]{ (rightTypeInput) };
inp.m_basept = axis.from;
inp.m_endpt = axis.to;
inp.m_interval = dist;
//Output values
OnPolyline[] plineArray;
OnCurve[] crvArray;
ArrayOn3dPoint ptsArray;
RhUtil.MakeRhinoContours(inp, out plineArray, out crvArray, out ptsArray);
//Set outgoing values
ArrayList toOutput = new ArrayList();
if(plineArray != null && plineArray.Length > 0 && plineArray[0] != null) toOutput.AddRange(plineArray);
if(crvArray != null && crvArray.Length > 0 && crvArray[0] != null) toOutput.AddRange(crvArray);
if(ptsArray != null && ptsArray.m_count > 0 && ptsArray[0] != null){
//Add pointarray to arraylist
toOutput.Capacity += ptsArray.m_count;
for(int i = 0; i < ptsArray.m_count; i++){
toOutput.Add(ptsArray[i]);
}
}
geomOut = toOutput;
} else {
//Nothing to set
geomOut = null;
}
-
- 0
- contours
- fb30dfbd-4ed5-4555-8126-f997bf6e1c5c
- 1
- false
- true
- true
- longest_list
-
330
380
117
74
-
366
382
24
70
-
378
417
- false
- 3
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable x
- Script Variable x
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable y
- Script Variable y
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable var
- Script Variable var
- true
- true
- 2
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- Output
- Print, Reflect and Error streams
- true
- false
- 8ec86459-bf01-4409-baee-174d0d2b13d0
- Result A
- Output parameter A
- true
- false
- input
- db89ff49-d195-4dec-b77e-bc1a7d12624c
- true
- true
- true
- 1
- bbcaa28a-7882-4cac-b10a-76c9edceb172
- true
-
332
382
34
23
-
332
382
34
23
-
349
393.6667
- false
- axis
- b3ab2cf3-4f33-40e8-8928-bd084890f994
- true
- true
- true
- 1
- f9b75be6-03d2-48a1-a9e0-1f4beda60eaf
- e6bfd14e-2096-43a2-bd40-78c493394544
- true
-
332
405
34
24
-
332
405
34
24
-
349
417
- false
- dist
- d0967f25-f076-4145-bb70-606a22d56a57
- true
- true
- true
- 1
- 4b66292f-f1c9-4365-a787-98a42fd36c0d
- 19ff81a2-dc4f-4035-8de9-26224c561321
- true
-
332
429
34
23
-
332
429
34
23
-
349
440.3333
- false
- out
- 8b6ee60a-a24d-4c89-b58c-78a8c3247838
- true
- true
- true
- 0
- 0
-
390
382
55
35
-
390
382
55
35
-
417.5
399.5
- false
- geomOut
- 629976d9-a918-4abb-89f0-86fd7eab40e9
- true
- true
- true
- 0
-
390
417
55
35
-
390
417
55
35
-
417.5
434.5
- false
- 72a29b54-2e48-474b-a400-d2124c4edf79
- Param Viewer
- false
- 0
- Viewer
- 524e8d8d-daf5-40a6-ac38-c1f19698740f
- true
- true
- true
- 2
- true
- 1
- 629976d9-a918-4abb-89f0-86fd7eab40e9
-
520
422
200
95
-
520
422
200
95
-
519.9999
422.25
- false
- 72a29b54-2e48-474b-a400-d2124c4edf79
- Param Viewer
- false
- 0
- Viewer
- 23794327-54ba-4ccd-a350-b14a8c2701a1
- true
- true
- true
- 2
- 1
- 290d387f-7c6e-46f0-a2ac-b053d17b2d42
-
520
180
200
95
-
520
180
200
95
-
519.9999
180.0417
- false
- 72a29b54-2e48-474b-a400-d2124c4edf79
- Param Viewer
- false
- 0
- Viewer
- 222248d5-0a83-46e7-a81b-19bf0bcc07fd
- true
- true
- true
- 2
- 1
- 5380466b-53a5-4c72-8193-bef6ef9f7c65
-
520
280
200
96
-
520
280
200
96
-
519.9999
280.3333
- false
- ac2bc2cb-70fb-4dd5-9c78-7e1ea97fe278
- Geometry
- Geo
- 8ab3db8b-1e3e-40ac-b5e4-b7297b6ba75a
- true
- true
- true
- true
- 1
- 629976d9-a918-4abb-89f0-86fd7eab40e9
- 0
-
458
549
60
24
-
458
549
60
24
-
488.5
561.25
- false
- 72a29b54-2e48-474b-a400-d2124c4edf79
- Param Viewer
- false
- 0
- Viewer
- 4e7ad59a-d095-45b1-84b6-81482d66069e
- true
- true
- true
- 2
- true
- 1
- 8ab3db8b-1e3e-40ac-b5e4-b7297b6ba75a
-
565
524
155
94
-
565
524
155
94
-
564.9999
523.5
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- d557f66f-8837-4fa9-9671-430670cdd7fa
- true
- true
- true
- 0
- use this control for specificity
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
338
282
119
38
-
338
282
119
38
-
338
282
- false
- Microsoft Sans Serif
- 10
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 327a78c1-7ed2-4b43-9b60-bcbb9b90447b
- true
- true
- true
- 0
- use this control for simplicity
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
339
498
120
38
-
339
498
120
38
-
339
498
- false
- Microsoft Sans Serif
- 10
- false
- false
- 2844fec5-142d-4381-bd5d-4cbcef6d6fed
- Sketch
- Sketch
- 8dc271ba-f28b-478f-ac45-6b6b6c12d8c5
- 1
-
52
461
102.3095
57.24552
-
52
461
102.3095
57.24552
-
52
461
- false
- 3
-
255;0;0;102
- 0
- 35
-
154.309502107705
489.622761058947
-
154.102576464807
487.007213347483
-
153.45549238512
484.3260494391
-
150.717840127486
478.907995069397
-
145.971048063435
473.694185335324
-
139.326622413942
469.039787456702
-
131.14712976251
465.258892728195
-
121.984544285731
462.557813351431
-
112.463025700995
461
-
93.8464764067103
461
-
84.3249578219749
462.557813351431
-
75.1623723451956
465.258892728195
-
66.9828796937638
469.039787456702
-
60.3384540442704
473.694185335324
-
55.5916619802194
478.907995069397
-
52.8540097225859
484.3260494391
-
52.2069256428983
487.007213347483
-
52
489.622761058947
-
52.2069256428983
492.238308770411
-
52.8540097225859
494.919472678793
-
55.5916619802194
500.337527048497
-
60.3384540442704
505.55133678257
-
66.9828796937638
510.205734661191
-
75.1623723451956
513.986629389698
-
84.3249578219749
516.687708766463
-
93.8464764067103
518.245522117894
-
112.463025700995
518.245522117894
-
121.984544285731
516.687708766463
-
131.14712976251
513.986629389698
-
139.326622413942
510.205734661191
-
145.971048063435
505.55133678257
-
150.717840127486
500.337527048497
-
153.45549238512
494.919472678793
-
154.102576464807
492.238308770411
-
154.309502107705
489.622761058947
- ac2bc2cb-70fb-4dd5-9c78-7e1ea97fe278
- Geometry
- Geo
- bbcaa28a-7882-4cac-b10a-76c9edceb172
- true
- true
- true
- true
- 5
- 62548248-406e-4c1d-9773-2a0a42ba0855
- f7cce528-0eff-42bf-a5df-55fb57e6bb3d
- 4e046643-ac95-465e-ba36-4e2490a2236d
- 5318bc14-f20e-49ff-8361-0a8f07bb4e1e
- 0d642e38-7a7f-41b9-b246-247e12dcc6da
- 0
-
159
217
60
24
-
159
217
60
24
-
189.25
229
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- a16bc286-b2e9-4874-bc2e-29531131fd30
- true
- true
- true
- 0
- flatten for a list
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
484
585
66
34
-
484
585
66
34
-
484
585
- false
- Microsoft Sans Serif
- 10
- false
- false