Skip to content

Commit 8720aa3

Browse files
committed
Update README with new commands and added keyword args
1 parent 0f7f273 commit 8720aa3

File tree

1 file changed

+51
-2
lines changed

1 file changed

+51
-2
lines changed

README.md

+51-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ A list of available commands is provide below.
8585

8686
## Available commands:
8787

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+
8896
### collapse()
8997

9098
Reduce the volume of components along the direction vector <dx dy dz> 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
162170
---|---|---
163171
input|Y|voxels
164172

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
165181

166182
### create_geometry()
167183

@@ -197,7 +213,8 @@ output_path|Y|string
197213
input|Y|voxels
198214
groups|Y|voxels
199215
use_bits|n|integer
200-
216+
conserve_memory|n|integer
217+
only_counts|n|integer
201218

202219
### dump_surfaces()
203220

@@ -209,6 +226,20 @@ input_voxels|Y|voxels
209226
input_surfaces|Y|surfaceset
210227
output_path|Y|string
211228

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
212243

213244
### export_csv()
214245

@@ -297,6 +328,13 @@ name|required|type
297328
---|---|---
298329
input|Y|ifcfile
299330

331+
### free()
332+
333+
Frees storage associated with a voxel grid. Use with caution.
334+
335+
name|required|type
336+
---|---|---
337+
input|Y|voxels
300338

301339
### greater_than()
302340

@@ -418,7 +456,7 @@ filename|Y|string
418456
use_value|n|integer
419457
with_components|n|integer
420458
groups|n|voxels
421-
459+
with_vertex_normals|n|integer
422460

423461
### normal_estimate()
424462

@@ -529,6 +567,17 @@ angular_tolerance|n|real
529567
max_curvature|n|real
530568

531569

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+
532581
### shift()
533582

534583
Shift the voxels in `input` along the direction vector `dx dy dz`.

0 commit comments

Comments
 (0)