mrdja.geometry.get_parallelepiped_3d_vertices

mrdja.geometry.get_parallelepiped_3d_vertices(center: List[float], normal1: List[float], normal2: List[float], normal3: List[float], length1: float, length2: float, length3: float) List[List[float]][source]

Get vertices of parallelepiped, given center, normal vectors, and lengths.

Parameters:
  • center (List[float]) – Center.

  • normal1 (List[float]) – Normal vector 1.

  • normal2 (List[float]) – Normal vector 2.

  • normal3 (List[float]) – Normal vector 3.

  • length1 (float) – Length 1.

  • length2 (float) – Length 2.

  • length3 (float) – Length 3.

Returns:

Vertices.

Return type:

List[List[float]]

Example: