pyvista_wasm.Cube#
- pyvista_wasm.Cube(center: tuple[float, float, float] = (0.0, 0.0, 0.0), x_length: float = 1.0, y_length: float = 1.0, z_length: float = 1.0) PolyData#
Create a cube mesh.
- Parameters:
center (tuple, optional) – Center of the cube (x, y, z). Default is (0, 0, 0).
x_length (float, optional) – Length in x direction. Default is 1.0.
y_length (float, optional) – Length in y direction. Default is 1.0.
z_length (float, optional) – Length in z direction. Default is 1.0.
- Returns:
A cube mesh.
- Return type:
Examples
>>> import pyvista_wasm as pv >>> cube = pv.Cube() >>> cube.n_points 24