tqec.interop.geometry.Face#
- class Face(kind: FaceKind, width: float, height: float, normal_direction: SignedDirection3D, position: FloatPosition3D = FloatPosition3D(x=0.0, y=0.0, z=0.0))[source]#
A rectangle face in the 3d space.
The axis of (width, height, normal_direction) is by the right-hand rule, i.e. (X, Y, Z) or (Y, Z, X) or (Z, X, Y).
- kind#
The kind of the face.
- width#
The width of the face.
- Type:
float
- height#
The height of the face.
- Type:
float
- normal_direction#
The normal direction of the face, which is the direction of the axis that the face is perpendicular to.
- position#
The position of the face in the 3D space.
- __init__(kind: FaceKind, width: float, height: float, normal_direction: SignedDirection3D, position: FloatPosition3D = FloatPosition3D(x=0.0, y=0.0, z=0.0)) None #
Methods
__init__
(kind, width, height, normal_direction)get_normal_vectors
()get_triangle_indices
()get_vertices
()shift_by
(dx, dy, dz)with_negated_normal_direction
()Attributes