pyvista_js.Cube#
- pyvista_js.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.
- パラメータ:
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.
- 戻り値:
A cube mesh.
- 戻り値の型:
サンプル
>>> import pyvista_js as pv >>> cube = pv.Cube() >>> cube.n_points 24