Modifications
elongation(function_, elongate_vector)
Elongates the geometry along a certain vector by the length of the vector in each respective direction.
| Parameters: |
|
|---|
| Returns: |
|
|---|
rounding(function_, rounding_radius)
Rounds off the geometry - effectively thickening it by the rounding radius.
| Parameters: |
|
|---|
| Returns: |
|
|---|
rounding_cs(function_, rounding_radius, bb_size)
Rounds off the geometry, but the geometry will be contained in its bounding box. Bounding box size must be specified.
| Parameters: |
|
|---|
| Returns: |
|
|---|
boundary(function_)
Get the boundary of the SDF.
| Parameters: |
|
|---|
| Returns: |
|
|---|
invert(function_)
Inverts the sign of the SDF.
| Parameters: |
|
|---|
| Returns: |
|
|---|
sign(function_)
Get the sign of the SDF.
| Parameters: |
|
|---|
| Returns: |
|
|---|
define_volume(function_, interior, interior_parameters)
Defines the interior of the SDF if with a function.
| Parameters: |
|
|---|
| Returns: |
|
|---|
onion(function_, thickness)
Transforms the geometry into a surface with some thickness.
| Parameters: |
|
|---|
| Returns: |
|
|---|
concentric(function_, width)
Transforms an isosurface into two concentric isosurfaces which are apart by the value of width parameter. Transforms a volume into an isosurface and rounds it by width/2.
| Parameters: |
|
|---|
| Returns: |
|
|---|
revolution(function_, radius)
Revolves a 2D shape around the y-axis to generate a 3D shape. First the 2D shape is translated along the x-axis by the radius of revolution, then it is revolved around the y-axis.
| Parameters: |
|
|---|
| Returns: |
|
|---|
axis_revolution(function_, radius, angle)
Revolves a 2D shape around an axis to generate a 3D shape. First the 2D shape is translated along the x-axis by the radius of revolution, and then revolved around the axis of revolution. The axis of revolution is angled by the specified angle with respect to the y-axis.
| Parameters: |
|
|---|
| Returns: |
|
|---|
extrusion(function_, distance)
Extrudes a 2D shape along the z-axis so that the height of the object is equal to the specified distance.
| Parameters: |
|
|---|
| Returns: |
|
|---|
twist(function_, pitch)
Twists the geometry around the z-axis based on the position along the z-axis and the pitch.
| Parameters: |
|
|---|
| Returns: |
|
|---|
bend(function_, radius, angle)
Bends the geometry around the z-axis, based on the specified bending radius and angle. The length of the bent section is radius*angle.
| Parameters: |
|
|---|
| Returns: |
|
|---|
shear_xz(function_, angle)
Displaces the points parallel to the x-axis of the coordinate system around the z-axis by the specified angle.
| Parameters: |
|
|---|
| Returns: |
|
|---|
shear_yz(function_, angle)
Displaces the points parallel to the y-axis of the coordinate system around the z-axis by the specified angle.
| Parameters: |
|
|---|
| Returns: |
|
|---|
shear_xy(function_, angle)
Displaces the points parallel to the x-axis of the coordinate system around the y-axis by the specified angle.
| Parameters: |
|
|---|
| Returns: |
|
|---|
shear_zy(function_, angle)
Displaces the points parallel to the z-axis of the coordinate system around the y-axis by the specified angle.
| Parameters: |
|
|---|
| Returns: |
|
|---|
shear_yx(function_, angle)
Displaces the points parallel to the y-axis of the coordinate system around the x-axis by the specified angle.
| Parameters: |
|
|---|
| Returns: |
|
|---|
shear_zx(function_, angle)
Displaces the points parallel to the z-axis of the coordinate system around the x-axis by the specified angle.
| Parameters: |
|
|---|
| Returns: |
|
|---|
displacement(function_, displacement_function, displacement_function_parameters)
Displaces the surface of an object based on the values of the displacement function. Should be applied last.
| Parameters: |
|
|---|
| Returns: |
|
|---|
infinite_repetition(function_, distances)
Infinitely repeats geometry in space on a cubic lattice.
| Parameters: |
|
|---|
| Returns: |
|
|---|
finite_repetition(function_, size, repetitions)
Repeats the geometry finite amount of times along each axis within a defined bounding box.
| Parameters: |
|
|---|
| Returns: |
|
|---|
finite_repetition_rescaled(function_, size, repetitions, instance_size, padding)
Repeats the geometry finite amount of times along each axis within a defined bounding box. The geometry is rescaled based on the provided geometry bounding box size and padding along each axis. Args: function_: Original SDF. size: Size of the bounding box along each axis in which the geometry is repeated. repetitions: Number of repetitions along each axis inside the bounding box. instance_size: Size of the bounding box around one instance of geometry along each axis. padding: Padding around each instance along each axis.
| Returns: |
|
|---|
symmetry(function_, axis)
Applies symmetry along an axis of the object.
| Parameters: |
|
|---|
| Returns: |
|
|---|
mirror(function_, a, b)
Applies mirroring along an axis connecting the two specified points.
| Parameters: |
|
|---|
| Returns: |
|
|---|
rotational_symmetry(function_, n, radius, phase)
Applies n-fold rotational symmetry to the object.
| Parameters: |
|
|---|
| Returns: |
|
|---|
linear_instancing(function_, n, a, b)
Instances the geometry n-times along the length of a segment defined by two points.
| Parameters: |
|
|---|
| Returns: |
|
|---|
custom_modification(function_, modification, modification_parameters)
Applies a custom user-specified modification to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
sigmoid_falloff(function_, amplitude, width)
Applies a sigmoid to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
positive_sigmoid_falloff(function_, amplitude, width)
Applies a sigmoid to a function defining a scalar field (Signed Distance Function). The sigmoid is shifted towards the positive values by the value of the width parameter.
| Parameters: |
|
|---|
| Returns: |
|
|---|
capped_exponential(function_, amplitude, width)
Applies the Capped Exponential function to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
hard_binarization(function_, threshold)
Binarizes the output of a function defining a scalar field (Signed Distance Function). Values below the threshold are 1 and values above are 0.
| Parameters: |
|
|---|
| Returns: |
|
|---|
linear_falloff(function_, amplitude, width)
Applies a decreasing linear function to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
relu(function_, width)
Applies the ReLU function to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
smooth_relu(function_, smooth_width, width=1.0, threshold=0.01)
Applies the "squareplus" function to a function defining a scalar field (Signed Distance Function). https://en.wikipedia.org/wiki/Rectifier_(neural_networks)
| Parameters: |
|
|---|
| Returns: |
|
|---|
slowstart(function_, smooth_width, width=1, threshold=0.01, ground=True)
Applies the SlowStart function to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
gaussian_boundary(function_, amplitude, width)
Applies the Gaussian function to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
gaussian_falloff(function_, amplitude, width)
Applies the Gaussian Falloff function to a function defining a scalar field (Signed Distance Function).
| Parameters: |
|
|---|
| Returns: |
|
|---|
conv_averaging(function_, kernel_size, iterations, co_resolution)
Averages the field using an averaging convolutional kernel of the specified size.
| Parameters: |
|
|---|
| Returns: |
|
|---|
conv_edge_detection(function_, co_resolution)
Edge detection with a 3x3 convolutional kernel.
| Parameters: |
|
|---|
| Returns: |
|
|---|
custom_post_process(function_, function, parameters)
Applies a custom user-specified post-processing function to a scalar (Signed Distance Function) field.
| Parameters: |
|
|---|
| Returns: |
|
|---|