Euclidean Transformations


move_sdf(function_, move_vector)

Modifies the original SDF so that the origin is translated by the 'move_vector'.

Parameters:
  • function_ (Callable[[array_like_type, tuple], array_like_type]) –

    Original SDF.

  • move_vector (array_like_type) –

    A vector, with shape (3,), by which the origin is translated.

Returns:
  • function_like_type

    Modified SDF.

scale_sdf(function_, scale_factor)

Modifies the original SDF by scaling it by the 'scale_factor'.

Parameters:
  • function_ (Callable[[array_like_type, tuple], array_like_type]) –

    Original SDF.

  • scale_factor (scalar_like_type) –

    A scalar factor by which the SDF is scaled.

Returns: Modified SDF.

rotate_sdf(function_, rotation_matrix)

Modifies the original SDF by rotating it by the 'rotation_matrix'.

Parameters:
  • function_ (Callable[[array_like_type, tuple], array_like_type]) –

    Original SDF.

  • rotation_matrix (array_like_type) –

    3x3 rotation matrix.

Returns:
  • function_like_type

    Modified SDF.

compound_euclidean_transform_sdf(function_, rotation_matrix, move_vector, scale_factor)

Apply the Euclidean transformations to the geometry (SDF).

Parameters:
  • function_ (Callable[[array_like_type, tuple], array_like_type]) –

    Original SDF

  • rotation_matrix (array_like_type) –

    3x3 rotation matrix.

  • move_vector (array_like_type) –

    A vector, with shape (3,), by which the origin is translated.

  • scale_factor (scalar_like_type) –

    A scalar factor by which the SDF is scaled.

Returns:
  • function_like_type

    Signed Distance field of shape (N,).