Helper functions
resolution_conversion(resolution)
Converts the given resolution so that there are odd number of points along each axis.
| Parameters: |
|
|---|
| Returns: |
|
|---|
generate_grid(size, resolution)
Generates a grid of points based on the provided size and resolution, centered at zero. The dimensionality of the grid is determined from the number of elements in the size input parameter.
| Parameters: |
|
|---|
| Returns: |
|
|---|
smarter_reshape(pattern, resolution)
Converts the Signed Distance field point cloud into a grid.
| Parameters: |
|
|---|
| Returns: |
|
|---|
vector_smarter_reshape(pattern, resolution)
Converts a vector field point cloud into a grid.
| Parameters: |
|
|---|
| Returns: |
|
|---|
nd_vector_smarter_reshape(pattern, resolution)
Converts an n-dimensional vector field point cloud into a grid.
| Parameters: |
|
|---|
| Returns: |
|
|---|
binning(pattern, bins, equal_width=True)
Discretize the Signed Distance field/pattern to based on the specified number of bins.
| Parameters: |
|
|---|
| Returns: |
|
|---|