Geometry
GenericGeometry
Bases: EuclideanTransform
, ModifyObject
Constructs geometry based on an SDF.
Parameters: |
|
---|
create(co)
Applies the modifications and transformations (in that order) to the SDF and returns the map of the Signed Distance Field.
Parameters: |
|
---|
Returns: |
|
---|
propagate(co, *parameters_)
Applies the modifications and transformations (in that order) to the SDF and returns the map of the Signed Distance Field. Similar to create but is meant to be used as input to construct new geometry.
Parameters: |
|
---|
Returns: |
|
---|
point_cloud(co)
Creates a point cloud from the interior points of the SDF.
Parameters: |
|
---|
Points
Bases: EuclideanTransformPoints
Constructs a Points object from a point cloud.
Parameters: |
|
---|
cloud: np.ndarray
property
Transformed point cloud.
Returns: |
|
---|
from_image(greyscale_image, image_dimensions, binary_threshold=0.5)
Creates a point cloud from a greyscale image. Positions of the points in the point cloud are calculated from the positions of the pixels with brightness below the binary threshold.
Parameters: |
|
---|
to_image(co_size, co_resolution, extend)
Converts a point cloud into a black and white image. Black where there are points and white where there are none.
Parameters: |
|
---|
Returns: |
|
---|
VectorField
Bases: ModifyVectorObject
Constructs a VectorField object from a vector field function.
Parameters: |
|
---|
create(p)
Applies the modifications to the vector field and returns the map of the vector field.
Parameters: |
|
---|
Returns: Vector field of shape (D, N).
propagate(p, *parameters_)
Applies the modifications to the vector field and returns the map of the vector field. Similar to create but is meant to be used as input to construct new vector fields.
Parameters: |
|
---|
Returns: |
|
---|
x(p, *parameters_)
Applies the modifications to the vector field and returns the x component of the vector field. Similar to create but is meant to be used as input to construct new vector fields.
Parameters: |
|
---|
Returns: |
|
---|
y(p, *parameters_)
Applies the modifications to the vector field and returns the x component of the vector field. Similar to create but is meant to be used as input to construct new vector fields.
Parameters: |
|
---|
Returns: |
|
---|
z(p, *parameters_)
Applies the modifications to the vector field and returns the x component of the vector field. Similar to create but is meant to be used as input to construct new vector fields.
Parameters: |
|
---|
Returns: |
|
---|
phi(p, *parameters_)
Applies the modifications and returns the azimuthal angle for each vector in the vector field. Similar to create but is meant to be used as input to construct new vector fields.
Parameters: |
|
---|
Returns: |
|
---|
theta(p, *parameters_)
Applies the modifications and returns the polar angle for each vector in the vector field. Similar to create but is meant to be used as input to construct new vector fields.
Parameters: |
|
---|
Returns: |
|
---|
length(p, *parameters_)
Applies the modifications and returns the lengths of vectors in the vector field. Similar to create but is meant to be used as input to construct new vector fields.
Parameters: |
|
---|
Returns: |
|
---|