You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-2
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,14 @@ A list of available commands is provide below.
85
85
86
86
## Available commands:
87
87
88
+
### assert()
89
+
90
+
Asserts that a certain the voxel grid or integer value specified in `input` represents a count greater than zero.
91
+
92
+
name|required|type
93
+
---|---|---
94
+
input|Y|voxels,integer
95
+
88
96
### collapse()
89
97
90
98
Reduce the volume of components along the direction vector <dxdydz> to 1. Useful to calculate floor area by eliminating the thickness of floor slabs. This is the reverse of extrusion.
@@ -162,6 +170,14 @@ name|required|type
162
170
---|---|---
163
171
input|Y|voxels
164
172
173
+
### count_neighbours()
174
+
175
+
Returns a new u32 grid with for every voxel the number of neighbours counted, with 6 or 26 for `connectivity`.
176
+
177
+
name|required|type
178
+
---|---|---
179
+
input|Y|voxels
180
+
connectivity|Y|integer
165
181
166
182
### create_geometry()
167
183
@@ -197,7 +213,8 @@ output_path|Y|string
197
213
input|Y|voxels
198
214
groups|Y|voxels
199
215
use_bits|n|integer
200
-
216
+
conserve_memory|n|integer
217
+
only_counts|n|integer
201
218
202
219
### dump_surfaces()
203
220
@@ -209,6 +226,20 @@ input_voxels|Y|voxels
209
226
input_surfaces|Y|surfaceset
210
227
output_path|Y|string
211
228
229
+
### dimensionality_estimate()
230
+
231
+
Use PCA to estimate the local dimensionality for individual voxels. The three eigen values that are returned in a new grid describe the degree of variance along the principal axes. When these eigenvalues are roughly equal the voxel van be considered part of a 3d component. If there is one eigenvalue considerably greater than the other two, it constitutes a part of 1d component. Etc.
232
+
233
+
For each individual voxel a neighbourhood consisting of voxels within a topological distance of `max_depth` voxels is formed. For voxels on the edge of a component this means an assymetric neighborhood is formed, because the neighborhood extends inwards into the component, but outwards there are no neighbours. This affects the distribution of eigenvalues. In order to get a more uniform distribution of eigenvalues within a component, the `reposition=1` can be used, which first takes a neighborhood of `max_depth` voxels and then takes the mean of that to be the seed of a second neighborhood traversal of `max_depth_2` voxels. This effectively moves the center of the neighborhood inwards.
234
+
235
+
name|required|type
236
+
---|---|---
237
+
input|Y|voxels
238
+
max_depth|n|integer
239
+
max_depth_2|n|integer
240
+
distance_2|n|real
241
+
neighbourhood_size|n|integer
242
+
reposition|n|integer
212
243
213
244
### export_csv()
214
245
@@ -297,6 +328,13 @@ name|required|type
297
328
---|---|---
298
329
input|Y|ifcfile
299
330
331
+
### free()
332
+
333
+
Frees storage associated with a voxel grid. Use with caution.
334
+
335
+
name|required|type
336
+
---|---|---
337
+
input|Y|voxels
300
338
301
339
### greater_than()
302
340
@@ -418,7 +456,7 @@ filename|Y|string
418
456
use_value|n|integer
419
457
with_components|n|integer
420
458
groups|n|voxels
421
-
459
+
with_vertex_normals|n|integer
422
460
423
461
### normal_estimate()
424
462
@@ -529,6 +567,17 @@ angular_tolerance|n|real
529
567
max_curvature|n|real
530
568
531
569
570
+
### set()
571
+
572
+
Set an individual voxel on grid in `input`.
573
+
574
+
name|required|type
575
+
---|---|---
576
+
x|Y|integer,real
577
+
y|Y|integer,real
578
+
z|Y|integer,real
579
+
input|n|voxels
580
+
532
581
### shift()
533
582
534
583
Shift the voxels in `input` along the direction vector `dx dy dz`.
0 commit comments