-
0
1
1
- 634424826518750000
-
0
8
3
- true
- true
- d63ec22e-5da2-49b7-bcfb-5746f5c4017e
-
150;255;255;255
-
150;0;150;0
- Shaded
- Lns_Simplify.ghx
- 634192528682496250
- 0
-
224
37
- 0.512
- 0
- 0
- 16
- 57da07bd-ecab-415d-9d86-af36d7073abc
- Number Slider
- Number Slider
- Slider
- Numeric slider for single values
- bccab5c3-8487-4d5d-ba53-89b9d744f462
- false
- true
- true
- 0
-
307
197
161
20
-
307
197
41
20
-
307.24
197.58
- false
- 1.625
- 0
- 50
- 4
- 0
- f5e3456b-dcfc-4faa-ac4e-7804cb75ee6d
- C# Script
-
bool go;
int n = 0;
if(tol > 0)
{
do
{
go = Converge(pts, tol);
n += 1;
}
while(go);
}
Print("Iterations " + Convert.ToString(n));
A = pts;
-
private bool Converge(List<Point3d> pts, double tol)
{
Vector3d[] DeltaPos = new Vector3d[pts.Count];
bool check = false;
tol = Math.Pow(tol, 2);
for(int i = 0; i < pts.Count; i++)
{
DeltaPos[i] = LocalCentroid(pts[i], pts, tol) - pts[i];
if(DeltaPos[i].X + DeltaPos[i].Y + DeltaPos[i].Z > doc.ModelAbsoluteTolerance)
{
check = true;
}
}
for (int i = 0; i < pts.Count; i++)
{
pts[i] += DeltaPos[i];
}
return check;
}
private Point3d LocalCentroid(Point3d p, List<Point3d> pts, double tolSqr)
{
Point3d cntr = new Point3d(0, 0, 0);
Vector3d testVec;
double lsqr;
int count = 0;
for (int i = 0; i < pts.Count; i++)
{
testVec = pts[i] - p;
lsqr = testVec.SquareLength;
if (lsqr < tolSqr)
{
cntr += pts[i];
count += 1;
}
}
return cntr / count;
}
- 0
- C# Script
- Simplify Pts
- A C#.NET scriptable component
- 048ac6cc-9d8e-49f4-aaae-b5d76594c6a9
- true
- true
- true
- longest_list
-
501
138
78
93
-
528
140
24
89
-
540
185
- false
- 2
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable pts
- Script Variable pts
- 1
- true
- true
- 84fa917c-1ed8-4db3-8be1-7bdc4a6495a2
- Variable tol
- Script Variable tol
- 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
- Variable pts
- pts
- Script Variable pts
- e2cc472d-0f8c-4535-a5d9-836c55813a3a
- true
- true
- true
- 1
- 1
- 8b2402dd-8ae1-4957-9b6e-101a6ad5aebf
- e1937b56-b1da-4c12-8bd8-e34ee81746ef
- true
- true
-
503
140
22
44
-
503
140
22
44
-
515.5
162.25
- false
- Variable tol
- tol
- Script Variable tol
- a2ed88ac-74e9-4c76-88ce-795b84dfce46
- true
- true
- true
- 1
- bccab5c3-8487-4d5d-ba53-89b9d744f462
- 19ff81a2-dc4f-4035-8de9-26224c561321
- true
- true
-
503
184
22
45
-
503
184
22
45
-
515.5
206.75
- false
- Output
- out
- Print, Reflect and Error streams
- cd383d44-1087-4488-aab2-29679e5c4520
- false
- true
- true
- 0
-
555
140
22
44
-
555
140
22
44
-
567.5
162.25
- false
- Result A
- A
- Output parameter A
- e1b741ea-4803-476c-89a1-f57bb41375d6
- true
- true
- true
- 0
-
555
184
22
45
-
555
184
22
45
-
567.5
206.75
- false
- b7e4e0ef-a01d-48c4-93be-2a12d4417e22
- Random
- Random
- Random
- Generate a list of pseudo random numbers.
- cd017bc6-5ebd-4f89-a053-a9047f7d11f6
- true
- true
- true
- longest_list
-
-283
46
64
84
-
-263
48
24
80
-
-251
88
- false
- Range
- R
- Domain of random numeric range
- c2b5dcff-d99a-4398-9a4d-494cb87c4903
- false
- true
- true
- 0
- 1
-
-281
48
15
20
-
-281
48
15
20
-
-272
58
- false
-
0
10
- Number
- N
- Number of random values
- 87ccd162-3bce-4911-b389-973f920a934f
- false
- true
- true
- 0
- 1
-
-281
68
15
20
-
-281
68
15
20
-
-272
78
- false
- 25
- Seed
- S
- Seed of random engine
- d528cabf-2069-42e8-a869-a7707fdbe42b
- false
- true
- true
- 0
- 1
-
-281
88
15
20
-
-281
88
15
20
-
-272
98
- false
- 2
- Integers
- I
- Limit to integers only
- 5e284ba3-9ba2-46fb-bea6-0451ab29a46b
- false
- true
- true
- 0
- 1
- false
-
-281
108
15
20
-
-281
108
15
20
-
-272
118
- false
- false
- Range
- R
- Range of random numbers
- 1574ce77-6c5d-4dd7-9162-103ae5fbf5f6
- false
- true
- true
- 0
-
-236
48
15
80
-
-236
48
15
80
-
-227
88
- false
- 59e0b89a-e487-49f8-bab8-b5bab16be14c
- Panel
- Panel
- A panel for custom notes and String values
- 351639ae-43c6-4739-b919-e353add0b836
- false
- true
- true
- 1
- cd383d44-1087-4488-aab2-29679e5c4520
- Double click to edit panel content…
- true
- true
- true
- 1
- 0
- false
-
255;0;0;0
-
255;255;250;90
-
502
79
160
51
-
502
79
160
51
-
502.742
79.02129
- false
- 3581f42a-9592-4549-bd6b-1c0fc39d067b
- Point XYZ
- Point XYZ
- Pt
- Create a point from {xyz} coordinates.
- 9a4b19cc-eea4-4ae8-8708-ed0aa53de441
- false
- true
- true
- longest_list
-
-115
75
65
64
-
-96
77
24
60
-
-84
107
- false
- X component
- X
- {x} component
- e0e0f2fb-71a2-446b-ad07-a7c007e85bbf
- false
- true
- true
- 1
- 1574ce77-6c5d-4dd7-9162-103ae5fbf5f6
- 1
-
-113
77
14
20
-
-113
77
14
20
-
-104.5
87
- false
- 0
- Y component
- Y
- {y} component
- a9ad2b77-1d98-42c6-a4b1-a85e75663c24
- false
- true
- true
- 1
- 1df18456-05cf-41bc-86db-241399c2e7db
- 1
-
-113
97
14
20
-
-113
97
14
20
-
-104.5
107
- false
- 0
- Z component
- Z
- {z} component
- 2d312ecc-8b56-4c3f-8047-cf70870f0a16
- false
- true
- true
- 0
- 1
-
-113
117
14
20
-
-113
117
14
20
-
-104.5
127
- false
- 0
- Point
- Pt
- Point coordinate
- 11038566-18de-485a-a6b9-24a93765ecd2
- true
- true
- true
- 0
-
-69
77
17
60
-
-69
77
17
60
-
-59
107
- false
- f02a20f6-bb49-4e3d-b155-8ed5d3c6b000
- Jitter
- Jitter
- Jitter
- Randomly shuffles a list of values.
- 73312754-2fe7-4249-a379-2a63fd8ac58c
- false
- true
- true
- longest_list
-
-194
106
63
64
-
-175
108
24
60
-
-163
138
- false
- List
- L
- Values to shuffle
- a6c26aac-fc0c-430b-aa44-8ea1b7895af3
- true
- true
- true
- 1
- 1
- 1574ce77-6c5d-4dd7-9162-103ae5fbf5f6
-
-192
108
14
20
-
-192
108
14
20
-
-183.5
118
- false
- Jitter
- J
- Shuffling strength. (0.0 = no shuffling, 1.0 = complete shuffling)
- 6a0a0578-4527-4d76-8ce1-16195d664925
- false
- true
- true
- 0
- 1
-
-192
128
14
20
-
-192
128
14
20
-
-183.5
138
- false
- 1
- Seed
- S
- Seed of shuffling engine
- 1ad7f8af-9218-4c1d-8905-1ad4d050cacc
- false
- true
- true
- 0
- 1
-
-192
148
14
20
-
-192
148
14
20
-
-183.5
158
- false
- 1
- Range
- R
- Range of random numbers
- 1df18456-05cf-41bc-86db-241399c2e7db
- true
- true
- true
- 0
-
-148
108
15
30
-
-148
108
15
30
-
-139
123
- false
- Indices
- I
- Index map of shuffled items
- 6f266bd8-7357-4943-b1e8-12303062deca
- false
- true
- true
- 0
-
-148
138
15
30
-
-148
138
15
30
-
-139
153
- false
- b7e4e0ef-a01d-48c4-93be-2a12d4417e22
- Random
- Random
- Random
- Generate a list of pseudo random numbers.
- 93f8bc9f-dc5a-44a9-abdc-8504f7fa184f
- true
- true
- true
- longest_list
-
-282
163
64
84
-
-262
165
24
80
-
-250
205
- false
- Range
- R
- Domain of random numeric range
- ca1e7e15-579a-492f-989e-6e95c1ab823f
- false
- true
- true
- 0
- 1
-
-280
165
15
20
-
-280
165
15
20
-
-271
175
- false
-
0
10
- Number
- N
- Number of random values
- ca387399-3127-4fdc-97b6-cd06a41bc5a6
- false
- true
- true
- 0
- 1
-
-280
185
15
20
-
-280
185
15
20
-
-271
195
- false
- 25
- Seed
- S
- Seed of random engine
- 7624c381-c66d-42d0-bba4-69e9a6bd526b
- false
- true
- true
- 0
- 1
-
-280
205
15
20
-
-280
205
15
20
-
-271
215
- false
- 3
- Integers
- I
- Limit to integers only
- 0a8dff7a-36e4-455b-8463-c097de689bad
- false
- true
- true
- 0
- 1
- false
-
-280
225
15
20
-
-280
225
15
20
-
-271
235
- false
- false
- Range
- R
- Range of random numbers
- b314f517-5914-4bf8-8af8-9db57af7d97c
- false
- true
- true
- 0
-
-235
165
15
80
-
-235
165
15
80
-
-226
205
- false
- 3581f42a-9592-4549-bd6b-1c0fc39d067b
- Point XYZ
- Point XYZ
- Pt
- Create a point from {xyz} coordinates.
- d92ae6bd-0f74-4bca-8294-cdfebfc33c55
- false
- true
- true
- longest_list
-
-114
192
65
64
-
-95
194
24
60
-
-83
224
- false
- X component
- X
- {x} component
- 753d70fe-87d7-4d4a-8e47-b244adb5a724
- false
- true
- true
- 1
- b314f517-5914-4bf8-8af8-9db57af7d97c
- 1
-
-112
194
14
20
-
-112
194
14
20
-
-103.5
204
- false
- 0
- Y component
- Y
- {y} component
- 9b19a81c-c672-47d7-9eb1-20602c984914
- false
- true
- true
- 1
- b4cc0cc0-fb2d-4f1c-8da4-6fb8183b5add
- 1
-
-112
214
14
20
-
-112
214
14
20
-
-103.5
224
- false
- 0
- Z component
- Z
- {z} component
- a50150a8-374c-41e7-9e58-05fcf7c9faed
- false
- true
- true
- 0
- 1
-
-112
234
14
20
-
-112
234
14
20
-
-103.5
244
- false
- 0
- Point
- Pt
- Point coordinate
- 6262794c-4c9c-42db-83a6-f181e379b57a
- true
- true
- true
- 0
-
-68
194
17
60
-
-68
194
17
60
-
-58
224
- false
- f02a20f6-bb49-4e3d-b155-8ed5d3c6b000
- Jitter
- Jitter
- Jitter
- Randomly shuffles a list of values.
- 44e08af0-9a14-4b64-b787-c8c0439d727b
- false
- true
- true
- longest_list
-
-193
223
63
64
-
-174
225
24
60
-
-162
255
- false
- List
- L
- Values to shuffle
- 5f56a848-d879-43af-ab68-0b1d8444d002
- true
- true
- true
- 1
- 1
- b314f517-5914-4bf8-8af8-9db57af7d97c
-
-191
225
14
20
-
-191
225
14
20
-
-182.5
235
- false
- Jitter
- J
- Shuffling strength. (0.0 = no shuffling, 1.0 = complete shuffling)
- 198bd971-3321-42f3-b265-4260014acbc0
- false
- true
- true
- 0
- 1
-
-191
245
14
20
-
-191
245
14
20
-
-182.5
255
- false
- 1
- Seed
- S
- Seed of shuffling engine
- 870b0f0a-96ac-4c31-807d-51f26370451a
- false
- true
- true
- 0
- 1
-
-191
265
14
20
-
-191
265
14
20
-
-182.5
275
- false
- 4
- Range
- R
- Range of random numbers
- b4cc0cc0-fb2d-4f1c-8da4-6fb8183b5add
- true
- true
- true
- 0
-
-147
225
15
30
-
-147
225
15
30
-
-138
240
- false
- Indices
- I
- Index map of shuffled items
- 7195c13a-9d07-4ab0-a308-fa43b28e5dce
- false
- true
- true
- 0
-
-147
255
15
30
-
-147
255
15
30
-
-138
270
- false
- 4c4e56eb-2f04-43f9-95a3-cc46a14f495a
- Line
- Line
- Ln
- Create a line between two points.
- 0f8637d4-9e10-4a53-aab3-8d976d90f615
- false
- true
- true
- longest_list
-
50
139
61
44
-
69
141
24
40
-
81
161
- false
- Point A
- A
- Line start point
- cf9d4aa1-06cc-4887-bf6d-bbb0bc332306
- true
- true
- true
- 1
- 11038566-18de-485a-a6b9-24a93765ecd2
-
52
141
14
20
-
52
141
14
20
-
60.5
151
- false
- Point B
- B
- Line end point
- 5d115f9c-76df-44fb-ab44-963378381d99
- true
- true
- true
- 1
- 6262794c-4c9c-42db-83a6-f181e379b57a
-
52
161
14
20
-
52
161
14
20
-
60.5
171
- false
- Line
- L
- Line segment
- 9fbd8812-96fb-4240-811f-45da4d91cc02
- true
- true
- true
- 0
-
96
141
13
40
-
96
141
13
40
-
104
161
- false
- 11bbd48b-bb0a-4f1b-8167-fa297590390d
- End Points
- End Points
- End
- Extract the end points of a curve.
- bf5641c0-93d4-444a-908a-75b2edfc08cc
- false
- true
- true
- longest_list
-
318
137
63
44
-
338
139
24
40
-
350
159
- false
- Curve
- C
- Curve to evaluate
- 9b78f738-615c-4d9b-a9a2-d3aff84f6b0e
- true
- true
- true
- 1
- 9fbd8812-96fb-4240-811f-45da4d91cc02
-
320
139
15
40
-
320
139
15
40
-
329
159
- false
- Start
- S
- Curve start point
- 0f607d31-e5a9-4d9e-9220-ac86f2ca0111
- true
- true
- true
- 0
-
365
139
14
20
-
365
139
14
20
-
373.5
149
- false
- End
- E
- Curve end point
- 03e2d954-40b1-4e00-90a9-cb190278b777
- true
- true
- true
- 0
-
365
159
14
20
-
365
159
14
20
-
373.5
169
- false
- 1817fd29-20ae-4503-b542-f0fb651e67d7
- List Length
- List Length
- Lng
- Measure the length of a list.
- 4a5a6fef-1837-4999-8a51-fc93dcc298cf
- true
- true
- true
- longest_list
-
519
244
60
39
-
537
246
24
35
-
549
264
- false
- List
- L
- Base list
- b0d0505f-0d28-4d5c-8d72-3ba874374533
- true
- true
- true
- 1
- 1
- 9fbd8812-96fb-4240-811f-45da4d91cc02
-
521
246
13
35
-
521
246
13
35
-
529
263.5
- false
- Length
- L
- Number of items in L
- 61aa364b-7872-4548-bd83-f00f3caf69b5
- false
- true
- true
- 0
-
564
246
13
35
-
564
246
13
35
-
572
263.5
- false
- 86866576-6cc0-485a-9cd2-6f7d493f57f7
- Merge
- Merge
- Merge
- Merge two streams into one.
- c3a76651-7a17-4c30-9e87-616afcb52765
- true
- true
- true
- longest_list
-
404
135
62
54
-
423
137
24
50
-
435
162
- false
- Stream A
- A
- Input stream #1
- 11a7f31d-0200-4765-9835-60cc0303eab5
- true
- true
- true
- 2
- 1
- 0f607d31-e5a9-4d9e-9220-ac86f2ca0111
-
406
137
14
25
-
406
137
14
25
-
414.5
149.5
- false
- Stream B
- B
- Input stream #2
- 6d1855ce-b391-45b1-a1c5-f013bb3487d1
- true
- true
- true
- 2
- 1
- 03e2d954-40b1-4e00-90a9-cb190278b777
-
406
162
14
25
-
406
162
14
25
-
414.5
174.5
- false
- Stream
- S
- Merged stream
- 8b2402dd-8ae1-4957-9b6e-101a6ad5aebf
- true
- true
- true
- 0
-
450
137
14
50
-
450
137
14
50
-
458.5
162
- false
- 9ab93e1a-ebdf-4090-9296-b000cff7b202
- Split List
- Split List
- Split
- Split a list into separate parts.
- 5b08bc23-5d18-41da-93c7-ea85341e1daa
- true
- true
- true
- longest_list
-
651
232
61
44
-
669
234
24
40
-
681
254
- false
- List
- L
- Base list
- 63457394-80fa-41d1-9429-1e39095a6984
- true
- true
- true
- 1
- 1
- e1b741ea-4803-476c-89a1-f57bb41375d6
-
653
234
13
20
-
653
234
13
20
-
661
244
- false
- Index
- i
- Splitting index
- 5a375b13-2ec3-4d29-805d-67f0c5d0b4e0
- false
- true
- true
- 1
- 61aa364b-7872-4548-bd83-f00f3caf69b5
-
653
254
13
20
-
653
254
13
20
-
661
264
- false
- List A
- A
- Items to the left of (i)
- 30370f21-efa0-416c-abd9-787de8d5bb7e
- true
- true
- true
- 0
-
696
234
14
20
-
696
234
14
20
-
704.5
244
- false
- List B
- B
- Items to the right of and including (i)
- 94f239aa-983c-4800-b85b-b836fd70313e
- true
- true
- true
- 0
-
696
254
14
20
-
696
254
14
20
-
704.5
264
- false
- 4c4e56eb-2f04-43f9-95a3-cc46a14f495a
- Line
- Line
- Ln
- Create a line between two points.
- 1c8c439c-80e0-48a0-94c1-aec41fab1329
- true
- true
- true
- longest_list
-
726
231
61
44
-
745
233
24
40
-
757
253
- false
- Point A
- A
- Line start point
- 6459d459-8753-4fdf-aa32-a3ce732df665
- true
- true
- true
- 1
- 30370f21-efa0-416c-abd9-787de8d5bb7e
-
728
233
14
20
-
728
233
14
20
-
736.5
243
- false
- Point B
- B
- Line end point
- 29c73e98-bbc3-49ed-adab-47876c5ad683
- true
- true
- true
- 1
- 94f239aa-983c-4800-b85b-b836fd70313e
-
728
253
14
20
-
728
253
14
20
-
736.5
263
- false
- Line
- L
- Line segment
- 10033064-213c-451a-a01c-905cdd33bed2
- true
- true
- true
- 0
-
772
233
13
40
-
772
233
13
40
-
780
253
- false
- 807b86e3-be8d-4970-92b5-f8cdcb45b06b
- Circle
- Circle
- Cir
- Create a circle defined by base plane and radius.
- d06a3451-c420-4bb7-b7ce-3802617efcca
- false
- true
- true
- longest_list
-
648
184
64
44
-
668
186
24
40
-
680
206
- false
- Plane
- P
- Base plane of circle
- 37be42fd-4ce0-4c2a-8148-57fd23d96b07
- true
- true
- true
- 1
- e1b741ea-4803-476c-89a1-f57bb41375d6
- 1
-
650
186
15
20
-
650
186
15
20
-
659
196
- false
-
0
0
0
1
0
0
0
1
0
- Radius
- R
- Radius of circle
- 920e588d-f7bf-4ea6-b73f-42b73ab8accd
- false
- true
- true
- 1
- bccab5c3-8487-4d5d-ba53-89b9d744f462
- 1
-
650
206
15
20
-
650
206
15
20
-
659
216
- false
- 1
- Circle
- C
- Resulting circle
- ac6359d4-37bd-4cf8-a35d-688efb6fc33a
- true
- true
- true
- 0
-
695
186
15
40
-
695
186
15
40
-
704
206
- false