NonlinearDeformation Module

gpdmink.NonlinearDeformation.get_gradient_parameterized_nonlinear_deformation(s, m, factor, deform_type)

Apply nonlinear deformation parameterized by gradients.

Parameters:
  • s (object) – Geometric shape object

  • m (numpy.ndarray) – Gradient vectors

  • factor (float) – Deformation factor parameter

  • deform_type (str) – Type of deformation (“taper”, “bend”, “twist”)

Returns:

Tuple containing deformed points and gradients

Return type:

tuple(numpy.ndarray, numpy.ndarray)

gpdmink.NonlinearDeformation.get_nonlinear_deformation(s, x, m, factor, deform_type)

Apply nonlinear deformation to surface points and gradients.

Parameters:
  • s (object) – Geometric shape object

  • x (numpy.ndarray) – Surface points in canonical frame

  • m (numpy.ndarray) – Gradient vectors

  • factor (float) – Deformation factor parameter

  • deform_type (str) – Type of deformation (“taper”, “bend”, “twist”)

Returns:

Tuple containing deformed points and gradients

Return type:

tuple(numpy.ndarray, numpy.ndarray)

gpdmink.NonlinearDeformation.get_nonlinear_deformation_reverse(s, x_deform, m_deform, factor, deform_type)

Reverse nonlinear deformation to recover original points and gradients.

Parameters:
  • s (object) – Geometric shape object

  • x_deform (numpy.ndarray) – Deformed surface points

  • m_deform (numpy.ndarray) – Deformed gradient vectors

  • factor (float) – Deformation factor parameter

  • deform_type (str) – Type of deformation (“taper”, “bend”, “twist”)

Returns:

Tuple containing original points and gradients

Return type:

tuple(numpy.ndarray, numpy.ndarray)