Other Components#

class hypervehicle.components.polygon.Cube(a: float, centre: Vector3 = Vector3(x=0, y=0, z=0), stl_resolution: int = 2, verbosity: int = 1, name: str = None)[source]#

Bases: Component

__init__(a: float, centre: Vector3 = Vector3(x=0, y=0, z=0), stl_resolution: int = 2, verbosity: int = 1, name: str = None) None[source]#
Parameters:
  • a (float) – The cube side half-length.

  • centre (Vector3, optional) – The centre point of the cube. The default is Vector3(0,0,0).

generate_patches()[source]#

Generates the parametric patches from the parameter dictionary.

class hypervehicle.components.polygon.Sphere(r: float, centre: Vector3 = Vector3(x=0, y=0, z=0), stl_resolution: int = 2, verbosity: int = 1, name: str = None)[source]#

Bases: Component

__init__(r: float, centre: Vector3 = Vector3(x=0, y=0, z=0), stl_resolution: int = 2, verbosity: int = 1, name: str = None) None[source]#
Parameters:
  • r (float) – The radius of the sphere.

  • centre (Vector3) – The centre point of the sphere. The default is Vector3(0,0,0).

generate_patches()[source]#

Generates the parametric patches from the parameter dictionary.