def getFiducialPositions(fiducialNode):
  """ Extracts positions from input fiducial node and returns it as array of positions

  Parameters
  ----------
  fiducialNode : vtkMRMLMarkupsFiducialNode
    FiducialNode from which we want the coordinates

  Returns
  -------
  List of arrays[3] of fiducial positions
  """
  positions = []
  for i in range(fiducialNode.GetNumberOfFiducials()):
    pos = [0, 0, 0]
    fiducialNode.GetNthFiducialPosition(i, pos)
    positions.append(pos)
  return positions