tqec.sketchup.geometry.Face
- class Face(face_type: FaceType, width: float, height: float, normal_direction: Direction3D, positive_facing: bool = True, translation: Tuple[float, float, float] = (0, 0, 0))[source]
A rectangle face in the 3d space.
(axis_width, axis_height, axis_normal) is by the right-hand rule, which only has 3 possible values: (X, Y, Z) | (Y, Z, X) | (Z, X, Y).
- face_type
The type 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.
- positive_facing
Whether the normal direction is towards the positive direction of the axis.
- Type:
bool
- translation
The position translation of the face from the origin.
- Type:
Tuple[float, float, float]
- __init__(face_type: FaceType, width: float, height: float, normal_direction: Direction3D, positive_facing: bool = True, translation: Tuple[float, float, float] = (0, 0, 0)) None
Methods
__init__
(face_type, width, height, ...[, ...])get_normal_vectors
()get_triangle_indices
()get_vertices
()translated_by
(dx, dy, dz)with_opposite_facing
()Attributes