reflect_base_points#

reflect_base_points(points, domain_size)[source]#

Relects a set of points about the faces of a given domain

Parameters:
  • points (ndarray) – The coordinates of the points to be reflected. The points should be in the coordinate system corresponding to the the domain.

  • domain_size (list or array) –

    Controls the size and shape of the domain, as follows:

    shape

    result

    [x, y, z]

    Points will be reflected about all 6 faces

    [x, y, 0]

    Points will be relfected about the x and y faces

    [r, z]

    Points will be reflected above and below the end faces and across the perimeter

    [r, 0]

    Points will be reflected across the perimeter

    [r]

    Points will be reflected across the outer surface

  • f (float) – The fraction of points which should be reflected. The default is 1 which reflects all the points in the domain, but this can lead to a lot of unnecessary points, so setting to 0.1 or 0.2 helps speed, but risks that the tessellation may not have smooth faces if not enough points are reflected.

Returns:

points – The coordinates of the original points plus the new reflected points

Return type:

ndarray