mrdja.drawing.draw_face_of_cube
- mrdja.drawing.draw_face_of_cube(plane: ndarray, cube_min: ndarray, cube_max: ndarray, color: str = 'red', alpha: float = 0.5, ax=None)[source]
Draws a plane in 3D space using matplotlib.
- Parameters:
plane (numpy.ndarray) – A 4x1 numpy array containing the coefficients of the plane corresponding to the face.
cube_min (numpy.ndarray) – A 3x1 numpy array containing the minimum x, y, and z values of the cube.
cube_max (numpy.ndarray) – A 3x1 numpy array containing the maximum x, y, and z values of the cube.
color (str) – The color of the plane.
alpha (float) – The transparency of the plane.
ax (matplotlib.axes.Axes3D) – The matplotlib axis to draw on.
- Returns:
None
- Return type:
None