smooth_vectors

compas_slicer.utilities.smooth_vectors(vectors, strength, iterations)[source]

Smooths the vector iteratively, with the given number of iterations and strength per iteration

Parameters:
  • vectors (list, :class: ‘compas.geometry.Vector’)

  • strength (float)

  • iterations (int)

Returns:

list, (class: ‘compas.geometry.Vector3d’) – The smoothened vectors