Point generation 3D

medianshape.simplicial.pointgen3d.sphere_arc(bbox, theta, n)[source]

Generates a longitude arc on a sphere inscribed in a bounding box.

Parameters:
  • bbox (float) – a boundary box, [\(x_{min}, y_{min}, x_{max}, y_{max}\)].
  • tetha (float) – an angle between the projection of the longitude on xy-plane and x-axis.
  • n (int) – number of points to generate on the longitude.
Returns:

points

medianshape.simplicial.pointgen3d.horizontal_circle(r, n=10, center=[0, 0, 0])[source]

Generates a horizontal circle parallel to xy-plane.

Parameters:
  • r (float) – radius
  • n (int) – number of points to generate on the longitude.
  • center (float) – coordinates of a center of a circle.
Returns:

points

medianshape.simplicial.pointgen3d.vertical_circle_xz(r, n=5, center=[0, 0, 0], theta=0)[source]

Generates a circle parallel to xz-plane.

Parameters:
  • r (float) – radius
  • n (int) – number of points to generate on the longitude.
  • center (float) – coordinates of a center of a circle.
Returns:

points