-
0
1
1
- 633965692617669371
-
0
6
43
- true
- true
- d21b972d-8a8d-4bb3-82a3-4b483db4687b
- Shaded
- bakeWithNames-43.ghx
- 633789623711874000
- 0
-
76
43
- 1
- 0
- 31
- dabc854d-f50e-408a-b001-d043c7de151d
- Sphere
- Sph
- e56aed31-1499-4c32-8e6b-8b1b9bad55d1
- false
- true
- true
- longest_list
-
20
305
63
44
-
40
307
24
40
-
52
327
- false
- B
- 4e4dca87-656c-48f4-b6fd-0f899cf8a1ba
- true
- true
- true
- 0
- 1
-
22
307
18
20
-
22
307
18
20
-
31
317
- false
-
0
0
0
1
0
0
0
1
0
- R
- db1af3c1-6b76-45cd-a9e8-3d0f566731dc
- true
- true
- true
- 0
- 1
-
22
327
18
20
-
22
327
18
20
-
31
337
- false
- 1.2
- S
- 51604866-caba-4755-b5e7-c24a12081e3f
- true
- true
- true
- 0
- 0
- false
-
64
307
17
40
-
64
307
17
40
-
72.5
327
- false
- b40f28a2-ba30-4ac2-afe5-a6ece7f985fc
- Move
- Move
- 6286f931-cebf-4e1d-b100-0eaf57d45353
- true
- true
- true
- longest_list
-
261
164
66
44
-
282
166
24
40
-
294
186
- false
- G
- 2d638ab5-ce7e-4832-8514-c3d8e7d6d5ac
- true
- true
- true
- 1
- 51604866-caba-4755-b5e7-c24a12081e3f
- 0
-
263
166
19
20
-
263
166
19
20
-
272.5
176
- false
- T
- 43bc5f06-5235-4b53-8459-16d293b2a31c
- true
- true
- true
- 0
- 1
-
263
186
19
20
-
263
186
19
20
-
272.5
196
- false
-
-5.17573143857716
0
0
- G
- 26a978a1-6de4-4449-b87f-1fc04c9d9726
- true
- true
- true
- 0
- 0
-
306
166
19
40
-
306
166
19
40
-
315.5
186
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 86026323-9af8-4e57-a8ed-800ffcc1ae18
- true
- true
- true
- 0
- my moved sphere
- true
- true
- true
- 0
- false
-
255;255;255;255
-
255;0;0;90
-
606
202
150
20
-
606
202
150
20
-
605.8555
201.6641
- false
- Microsoft Sans Serif
- 10
- false
- false
- ad483f40-dc72-40dc-844d-c9e462c7d19f
- Boolean Toggle
- false
- BakeNow
- 6562b32f-54ba-4bd3-b382-a34fc70866e0
- true
- true
- true
- 0
-
22
175
101
20
-
22
175
101
20
-
21.625
175.0469
- false
- f19b8c33-dff2-4cc2-b95b-b4005ff3c10c
- Receiver
- true
- 2
- Receiver
- 0615c12a-4ecf-472c-8e91-540df8960201
- true
- true
- true
- 1
- 6562b32f-54ba-4bd3-b382-a34fc70866e0
-
690
227
60
24
-
690
227
60
24
-
719.918
239.2266
- false
- b40f28a2-ba30-4ac2-afe5-a6ece7f985fc
- Move
- Multiple Move
- 5e0e14a3-b937-4d85-a765-e8f1de6628d9
- true
- true
- true
- longest_list
-
261
335
66
44
-
282
337
24
40
-
294
357
- false
- G
- 5a0fe972-de36-48f5-be37-a98ce43d0086
- true
- true
- true
- 1
- 51604866-caba-4755-b5e7-c24a12081e3f
- 0
-
263
337
19
20
-
263
337
19
20
-
272.5
347
- false
- T
- 161bfeef-1b99-4fa4-a71d-2d5f39d8d820
- true
- true
- true
- 0
- 3
-
263
357
19
20
-
263
357
19
20
-
272.5
367
- false
-
4.87223199613215
2.31531519859739
0
-
5.32986439667492
-1.51026850241615
0
-
4.17891265525817
-5.48877670922135
0
- G
- 59c8b4df-511f-4dc0-bb4e-60fd5f4ac409
- true
- true
- true
- 0
- 0
-
306
337
19
40
-
306
337
19
40
-
315.5
357
- false
- f19b8c33-dff2-4cc2-b95b-b4005ff3c10c
- Receiver
- true
- 2
- Receiver
- b224cd36-cff4-473a-a3a5-d8186de60a0e
- true
- true
- true
- 1
- 6562b32f-54ba-4bd3-b382-a34fc70866e0
-
702
422
60
24
-
702
422
60
24
-
732.293
433.6016
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 1a57836e-c1c2-41ee-93bb-0feff6770fb0
- true
- true
- true
- 0
- my good sphere
- true
- true
- true
- 0
- false
-
255;255;255;255
-
255;0;0;90
-
387
474
130
20
-
387
474
130
20
-
386.8555
473.6641
- false
- Microsoft Sans Serif
- 10
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 279e31af-0d0f-4fd6-bd78-9cf50c32f001
- true
- true
- true
- 0
- my bad sphere
- true
- true
- true
- 0
- false
-
255;255;255;255
-
255;0;0;90
-
387
501
130
20
-
387
501
130
20
-
386.8555
500.6641
- false
- Microsoft Sans Serif
- 10
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 9d592b45-0d5c-4d60-8464-949587758891
- true
- true
- true
- 0
- my ugly sphere
- true
- true
- true
- 0
- false
-
255;255;255;255
-
255;0;0;90
-
387
528
130
20
-
387
528
130
20
-
386.8555
527.6641
- false
- Microsoft Sans Serif
- 10
- false
- false
- 3ede854e-c753-40eb-84cb-b48008f14fd4
- String
- Str
- 9d856fdf-f1ba-4891-b466-a731b5a4dcb2
- true
- true
- true
- 3
- 1a57836e-c1c2-41ee-93bb-0feff6770fb0
- 279e31af-0d0f-4fd6-bd78-9cf50c32f001
- 9d592b45-0d5c-4d60-8464-949587758891
- 0
-
702
396
60
24
-
702
396
60
24
-
732.293
407.5391
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 8f711a7d-05a7-457d-a80b-0620bdfb04ac
- true
- true
- true
- 0
- simple bake with names
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
363
159
228
20
-
363
159
228
20
-
362.8555
158.6641
- false
- Courier New
- 9
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- c949d579-0988-4065-a4f5-10aa192ae94c
- true
- true
- true
- 0
- multiple bakes with names
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
360
356
184
20
-
360
356
184
20
-
359.8555
355.6641
- false
- Courier New
- 8
- false
- false
- 2844fec5-142d-4381-bd5d-4cbcef6d6fed
- Sketch
- Sketch
- 6510709a-180b-4b6a-9c64-01720287b91f
- 1
-
349.3555
155.9141
566.9919
157.494
-
349.3555
155.9141
566.9919
157.494
-
349.3555
155.9141
- false
- 3
-
255;255;255;42
- 1
- 5
-
349.355499267578
313.408087320314
-
916.34736577655
313.408087320314
-
916.34736577655
155.914077758789
-
349.355499267578
155.914077758789
-
349.355499267578
313.408087320314
- 2844fec5-142d-4381-bd5d-4cbcef6d6fed
- Sketch
- Sketch
- 64f12e4c-8218-4975-b358-c6cebb2a7e14
- 1
-
351.043
353.1016
566.9919
221.3255
-
351.043
353.1016
566.9919
221.3255
-
351.043
353.1016
- false
- 3
-
255;255;255;42
- 1
- 5
-
351.042999267578
574.427075162174
-
918.03486577655
574.427075162174
-
918.03486577655
353.1015625
-
351.042999267578
353.1015625
-
351.042999267578
574.427075162174
- f19b8c33-dff2-4cc2-b95b-b4005ff3c10c
- Receiver
- true
- 1
- Receiver
- 57404250-8778-4ad0-b1ea-e04150aaba39
- true
- true
- true
- 1
- 6562b32f-54ba-4bd3-b382-a34fc70866e0
-
811
746
60
24
-
811
746
60
24
-
841.1866
757.686
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 38049250-3124-4c76-a537-ae076c6baccc
- true
- true
- true
- 0
- just object
- true
- true
- true
- 0
- false
-
255;255;255;255
-
255;0;0;90
-
416
668
130
20
-
416
668
130
20
-
415.8555
667.6641
- false
- Microsoft Sans Serif
- 10
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- df05b1aa-6f72-4f93-9f1d-0610f6009e47
- true
- true
- true
- 0
- auto-naming iterator
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
366
613
184
20
-
366
613
184
20
-
365.8555
612.6641
- false
- Courier New
- 8
- false
- false
- 2844fec5-142d-4381-bd5d-4cbcef6d6fed
- Sketch
- Sketch
- dc373b69-7a41-42b6-b904-5d4a2a2b0408
- 1
-
353.7305
608.6641
717.2099
221.3255
-
353.7305
608.6641
717.2099
221.3255
-
353.7305
608.6641
- false
- 3
-
255;255;255;42
- 1
- 5
-
353.730499267578
829.989575162174
-
1070.94040507343
829.989575162174
-
1070.94040507343
608.6640625
-
353.730499267578
608.6640625
-
353.730499267578
829.989575162174
- 00ec9ecd-4e1d-45ba-a8fc-dff716dbd9e4
- F2
- F(x,y)
- 1fb748c4-c573-4f86-ad9a-1ca4b6cae0cf
- true
- true
- true
- longest_list
-
784
655
109
64
-
853
657
24
60
-
865
687
- false
- startCount
- 804ee295-37b1-4cbf-bdd6-da8f349c3638
- true
- true
- true
- 0
- fixName & currentNum
-
786
657
67
20
-
786
657
67
20
-
819.5
667
- false
- fixName
- 2564f78a-3fac-4529-afa9-7c134d2aeec5
- true
- true
- true
- 1
- 38049250-3124-4c76-a537-ae076c6baccc
-
786
677
67
20
-
786
677
67
20
-
819.5
687
- false
- currentNum
- 7b6a5211-e69f-41d3-92c9-c99a9019d8d2
- true
- true
- true
- 1
- b439b473-92c9-45c9-8ac7-0b661ba7e84c
-
786
697
67
20
-
786
697
67
20
-
819.5
707
- false
- r
- e2473db7-fff7-4525-b581-2ca4f62c1b36
- true
- true
- true
- 0
-
877
657
14
60
-
877
657
14
60
-
884
687
- false
- e64c5fb1-845c-4ab1-8911-5f338516ba67
- Series
- Series
- 8f55bb8b-ed33-4c2f-9926-ac02a8903abb
- true
- true
- true
- longest_list
-
688
692
63
64
-
708
694
24
60
-
720
724
- false
- S
- 5df9c24c-d516-40e8-bfdc-75ec05519767
- true
- true
- true
- 0
- 1
-
690
694
18
20
-
690
694
18
20
-
699
704
- false
- 1
- N
- 54a89559-a92f-4116-aa9e-4c55c5567e6a
- true
- true
- true
- 0
- 1
-
690
714
18
20
-
690
714
18
20
-
699
724
- false
- 1
- C
- 1012e7d0-1777-49b0-a861-1d1a87689e7e
- true
- true
- true
- 1
- 514afab4-0e40-4829-95a7-ee728311b2ab
- 1
-
690
734
18
20
-
690
734
18
20
-
699
744
- false
- 10
- S
- b439b473-92c9-45c9-8ac7-0b661ba7e84c
- true
- true
- true
- 0
- 0
-
732
694
17
60
-
732
694
17
60
-
740.5
724
- false
- 1817fd29-20ae-4503-b542-f0fb651e67d7
- List Length
- Lng
- 3a58f35a-86c5-4bad-9719-63f4188d24d6
- true
- true
- true
- longest_list
-
593
736
67
28
-
618
738
24
24
-
630
750
- false
- list
- d8fdb925-32af-4649-bbb2-c338804a2cb7
- true
- true
- true
- 1
- 1
- 140ab9a6-93d5-4024-a6a5-10b41968bc18
-
595
738
23
24
-
595
738
23
24
-
606.5
750
- false
- L
- 514afab4-0e40-4829-95a7-ee728311b2ab
- true
- true
- true
- 0
- 0
-
642
738
16
24
-
642
738
16
24
-
650
750
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- 9d707865-5cba-4aaf-b77a-f63220d73cad
- true
- true
- true
- 0
- you should always check that your name list has the same lenght of the object list. Otherwise GH will repeat the last one ("longest list" pattern set on the C# component)
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
697
525
181
31
-
697
525
181
31
-
696.8555
524.6641
- false
- Courier New
- 8
- false
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Bake with names
- 480e2b77-183d-41c6-bff1-16ed1479ba1c
- true
- true
- true
- 0
- written by Giulio Piacentino
version 2009 August 03
for GH 0.6.0018
Use this toggle to bake, and
always set it back to false
when done (two double clicks)
- true
- true
- true
- 0
- false
-
255;0;0;0
-
255;255;204;46
-
20
15
211
130
-
20
15
211
130
-
20
15
- false
- Microsoft Sans Serif
- 10
- false
- false
- ac2bc2cb-70fb-4dd5-9c78-7e1ea97fe278
- Geometry
- Geo
- 140ab9a6-93d5-4024-a6a5-10b41968bc18
- true
- true
- true
- 3
- e5521e09-7fc7-49ba-8ca4-5da9f955d1f1
- 84e70c36-2b5d-424e-a44c-d7cbc039c873
- 64e95fc3-1406-4d99-95b5-bef02969286b
- 0
-
487
640
60
24
-
487
640
60
24
-
516.8555
651.6641
- false
- 8529dbdf-9b6f-42e9-8e1f-c7a2bde56a70
- Line
- Line
- e5521e09-7fc7-49ba-8ca4-5da9f955d1f1
- true
- true
- true
- 0
- 8
-
267
619
60
24
-
267
619
60
24
-
297.1485
631.1641
- false
-
-10.5019473934176
24.9916294810694
0
-1.92649576897636
12.6629230266343
0
-
-0.494083218471133
13.3277498337616
0
-8.22751263749191
27.007815843105
0
-
1.10037220652886
13.5745762940237
0
-4.80863462102649
27.623705859082
0
-
2.72707489758144
13.468733822634
0
-1.22900680454083
26.6879358906683
0
-
4.72893008011793
13.6306497274276
0
2.11418708970975
25.9190975939524
0
-
6.4070503946025
12.5137357044727
0
5.53742677631006
25.7955160273726
0
-
7.99392151505937
12.0055659624204
0
8.81450830922976
24.0624060024796
0
-
10.1081102541694
10.2112336637817
0
12.7608466418201
20.7566350338262
0
- fbac3e32-f100-4292-8692-77240a42fd1a
- Point
- Pt
- 84e70c36-2b5d-424e-a44c-d7cbc039c873
- true
- true
- true
- 0
- 3
-
267
650
60
24
-
267
650
60
24
-
297.1485
661.914
- false
-
14.4685252315259
17.4344869591698
0
-
16.3607483340365
15.8308721549213
0
-
18.2466119205766
13.6549185716805
0
- c9482db6-bea9-448d-98ff-fed6d69a8efc
- Box
- Box
- 64e95fc3-1406-4d99-95b5-bef02969286b
- true
- true
- true
- 0
- 1
-
267
684
60
24
-
267
684
60
24
-
297.1485
695.664
- false
-
21.1900357264042
11.2964072091549
0
1
0
0
0
1
0
-
0
2.34455268852494
-
0
2.99084327013875
-
0
2.90652821216933
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//Written by Giulio Piacentino
//Inserts geometry into the Rhino document, with custom attributes
if (activate){
//Make new attribute to set name
MRhinoObjectAttributes att = new MRhinoObjectAttributes();
//Set object name
att.m_name = name;
//We could also set object color, layer, printwidth, wiredensity, etc..
//att.m_color = new OnColor();
//att.m_layer_index = 0;
//att.m_plot_weight_mm = 0.35;
//att.m_wire_density = 2;
//Bake to the right type of object
if(obj is IOnBrep){ //If a brep, a polysurface or a surface
doc.AddBrepObject((IOnBrep) obj, att);
} else if(obj is IOnMesh) //If a mesh
doc.AddMeshObject((IOnMesh) obj, att);
else if(obj is IOnLine) //If a line (not a curve)
doc.AddCurveObject(new OnLineCurve((IOnLine) obj), att);
else if(obj is IOnArc) //If an arc (not a curve)
doc.AddCurveObject(new OnArcCurve((IOnArc) obj), att);
else if(obj is IOnCircle){ //If a circle (not a curve)
OnNurbsCurve crv = new OnNurbsCurve();
((OnCircle) obj).GetNurbForm(ref crv);
doc.AddCurveObject(crv, att);
} else if(obj is IOnCurve) //If a curve
doc.AddCurveObject((IOnCurve) obj, att);
else if(obj is IOn3dPoint) //If a point
doc.AddPointObject((IOn3dPoint) obj, att);
else if(obj is IArrayOn3dPoint) //If a pointcloud (?)
doc.AddPointCloudObject((IArrayOn3dPoint) obj, att);
else if(obj is IOn3dVector) { //If a vector
att.m_object_decoration = IOn.object_decoration.end_arrowhead;
doc.AddCurveObject(new OnLineCurve(new OnLine(new On3dPoint(0, 0, 0), (new On3dPoint(0, 0, 0)) + (On3dVector) obj)), att);
} else if(obj is Grasshopper.Kernel.IGH_BakeAwareData){ //If other strange type of geometry, including Box and Twistedbox
System.Guid gu;
RMA.Rhino.IRhinoObject ob;
((Grasshopper.Kernel.IGH_BakeAwareData) obj).BakeGeometry(doc, att, out gu, out ob);
} else {//Otherwise dont know what to do...
A += ("bakeName does not know how to handle this type of geometry: " + obj.GetType());
return;
}
}
-
- 0
- bakeName
- 0182d89c-8420-432e-83a1-ee27bafe1b4a
- 1
- true
- true
- true
- longest_list
-
772
168
101
84
-
822
170
24
80
-
834
210
- 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
- obj
- 8c159fa2-10d8-4199-ac1c-966b8d16a040
- true
- true
- true
- 1
- 26a978a1-6de4-4449-b87f-1fc04c9d9726
- true
-
774
170
48
27
-
774
170
48
27
-
798
183.3333
- false
- name
- aa183231-9f4d-402e-8ccb-303bed5865bd
- true
- true
- true
- 1
- 86026323-9af8-4e57-a8ed-800ffcc1ae18
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
-
774
197
48
26
-
774
197
48
26
-
798
210
- false
- activate
- 10cc960a-bb12-493b-bc49-55cbe114da48
- true
- true
- true
- 1
- 0615c12a-4ecf-472c-8e91-540df8960201
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
-
774
223
48
27
-
774
223
48
27
-
798
236.6667
- false
- out
- 606d67c2-760d-4ee5-8280-4cf418772bf4
- true
- true
- true
- 0
- 0
-
846
170
25
40
-
846
170
25
40
-
858.5
190
- false
- A
- 8d5280f6-61c5-4583-b808-81d19864ba37
- true
- true
- true
- 0
-
846
210
25
40
-
846
210
25
40
-
858.5
230
- false
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//Written by Giulio Piacentino
//Inserts geometry into the Rhino document, with custom attributes
if (activate){
//Make new attribute to set name
MRhinoObjectAttributes att = new MRhinoObjectAttributes();
//Set object name
att.m_name = name;
//We could also set object color, layer, printwidth, wiredensity, etc..
//att.m_color = new OnColor();
//att.m_layer_index = 0;
//att.m_plot_weight_mm = 0.35;
//att.m_wire_density = 2;
//Bake to the right type of object
if(obj is IOnBrep){ //If a brep, a polysurface or a surface
doc.AddBrepObject((IOnBrep) obj, att);
} else if(obj is IOnMesh) //If a mesh
doc.AddMeshObject((IOnMesh) obj, att);
else if(obj is IOnLine) //If a line (not a curve)
doc.AddCurveObject(new OnLineCurve((IOnLine) obj), att);
else if(obj is IOnArc) //If an arc (not a curve)
doc.AddCurveObject(new OnArcCurve((IOnArc) obj), att);
else if(obj is IOnCircle){ //If a circle (not a curve)
OnNurbsCurve crv = new OnNurbsCurve();
((OnCircle) obj).GetNurbForm(ref crv);
doc.AddCurveObject(crv, att);
} else if(obj is IOnCurve) //If a curve
doc.AddCurveObject((IOnCurve) obj, att);
else if(obj is IOn3dPoint) //If a point
doc.AddPointObject((IOn3dPoint) obj, att);
else if(obj is IArrayOn3dPoint) //If a pointcloud (?)
doc.AddPointCloudObject((IArrayOn3dPoint) obj, att);
else if(obj is IOn3dVector) { //If a vector
att.m_object_decoration = IOn.object_decoration.end_arrowhead;
doc.AddCurveObject(new OnLineCurve(new OnLine(new On3dPoint(0, 0, 0), (new On3dPoint(0, 0, 0)) + (On3dVector) obj)), att);
} else if(obj is Grasshopper.Kernel.IGH_BakeAwareData){ //If other strange type of geometry, including Box and Twistedbox
System.Guid gu;
RMA.Rhino.IRhinoObject ob;
((Grasshopper.Kernel.IGH_BakeAwareData) obj).BakeGeometry(doc, att, out gu, out ob);
} else {//Otherwise dont know what to do...
A += ("bakeName does not know how to handle this type of geometry: " + obj.GetType());
return;
}
}
-
- 0
- bakeName
- 96761a38-08a2-4c48-b719-cbb21c141c81
- 1
- true
- true
- true
- longest_list
-
785
360
101
82
-
835
362
24
78
-
847
401
- 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
- obj
- 972d1e41-495e-4d79-b0d8-78d159fd1e33
- true
- true
- true
- 1
- 59c8b4df-511f-4dc0-bb4e-60fd5f4ac409
- true
-
787
362
48
26
-
787
362
48
26
-
811
375
- false
- name
- 34a2ef28-f695-4c1b-9a08-ac950efe03ca
- true
- true
- true
- 1
- 9d856fdf-f1ba-4891-b466-a731b5a4dcb2
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
-
787
388
48
26
-
787
388
48
26
-
811
401
- false
- activate
- 7bcc98b0-0c70-456e-9390-7b77a5854850
- true
- true
- true
- 1
- b224cd36-cff4-473a-a3a5-d8186de60a0e
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
-
787
414
48
26
-
787
414
48
26
-
811
427
- false
- out
- 2c008e25-516d-47d0-ad1a-4453e18df825
- true
- true
- true
- 0
- 0
-
859
362
25
39
-
859
362
25
39
-
871.5
381.5
- false
- A
- c505afa7-e7f7-4510-b040-6aa287a29217
- true
- true
- true
- 0
-
859
401
25
39
-
859
401
25
39
-
871.5
420.5
- false
- 88c3f2b5-27f7-48a2-9528-1397fad62b93
- DotNET C# Script
-
//Written by Giulio Piacentino
//Inserts geometry into the Rhino document, with custom attributes
if (activate){
//Make new attribute to set name
MRhinoObjectAttributes att = new MRhinoObjectAttributes();
//Set object name
att.m_name = name;
//We could also set object color, layer, printwidth, wiredensity, etc..
//att.m_color = new OnColor();
//att.m_layer_index = 0;
//att.m_plot_weight_mm = 0.35;
//att.m_wire_density = 2;
//Bake to the right type of object
if(obj is IOnBrep){ //If a brep, a polysurface or a surface
doc.AddBrepObject((IOnBrep) obj, att);
} else if(obj is IOnMesh) //If a mesh
doc.AddMeshObject((IOnMesh) obj, att);
else if(obj is IOnLine) //If a line (not a curve)
doc.AddCurveObject(new OnLineCurve((IOnLine) obj), att);
else if(obj is IOnArc) //If an arc (not a curve)
doc.AddCurveObject(new OnArcCurve((IOnArc) obj), att);
else if(obj is IOnCircle){ //If a circle (not a curve)
OnNurbsCurve crv = new OnNurbsCurve();
((OnCircle) obj).GetNurbForm(ref crv);
doc.AddCurveObject(crv, att);
} else if(obj is IOnCurve) //If a curve
doc.AddCurveObject((IOnCurve) obj, att);
else if(obj is IOn3dPoint) //If a point
doc.AddPointObject((IOn3dPoint) obj, att);
else if(obj is IArrayOn3dPoint) //If a pointcloud (?)
doc.AddPointCloudObject((IArrayOn3dPoint) obj, att);
else if(obj is IOn3dVector) { //If a vector
att.m_object_decoration = IOn.object_decoration.end_arrowhead;
doc.AddCurveObject(new OnLineCurve(new OnLine(new On3dPoint(0, 0, 0), (new On3dPoint(0, 0, 0)) + (On3dVector) obj)), att);
} else if(obj is Grasshopper.Kernel.IGH_BakeAwareData){ //If other strange type of geometry, including Box and Twistedbox
System.Guid gu;
RMA.Rhino.IRhinoObject ob;
((Grasshopper.Kernel.IGH_BakeAwareData) obj).BakeGeometry(doc, att, out gu, out ob);
} else {//Otherwise dont know what to do...
A += ("bakeName does not know how to handle this type of geometry: " + obj.GetType());
return;
}
}
-
- 0
- bakeName
- 01275f88-2644-44e2-8856-6660240ee231
- 1
- true
- true
- true
- longest_list
-
943
624
101
82
-
993
626
24
78
-
1005
665
- 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
- obj
- d876d305-e82d-40ee-a7e6-5f4016cb0769
- true
- true
- true
- 1
- 140ab9a6-93d5-4024-a6a5-10b41968bc18
- true
-
945
626
48
26
-
945
626
48
26
-
969
639
- false
- name
- 199a9c53-c4ef-4561-bf94-af0ba9d60612
- true
- true
- true
- 1
- e2473db7-fff7-4525-b581-2ca4f62c1b36
- 9e93878a-f9c5-4f0a-8a70-584bf09f24bb
- true
-
945
652
48
26
-
945
652
48
26
-
969
665
- false
- activate
- d29951cf-2e82-4091-aa39-8612e7d4dcbe
- true
- true
- true
- 1
- 57404250-8778-4ad0-b1ea-e04150aaba39
- d60527f5-b5af-4ef6-8970-5f96fe412559
- true
-
945
678
48
26
-
945
678
48
26
-
969
691
- false
- out
- d8c30477-1863-4e08-978d-841d5d76bc9a
- true
- true
- true
- 0
- 0
-
1017
626
25
39
-
1017
626
25
39
-
1029.5
645.5
- false
- A
- d658d829-0026-479d-9a5a-6077c61d0fbd
- true
- true
- true
- 0
-
1017
665
25
39
-
1017
665
25
39
-
1029.5
684.5
- false