CubeSource#
- class CubeSource(*args, **kwargs)[source]#
Cube source algorithm class.
Added in version 0.44.0.
- Parameters:
- centersequence[
float], default: (0.0, 0.0, 0.0) Center in
[x, y, z].- x_length
float, default: 1.0 Length of the cube in the x-direction.
- y_length
float, default: 1.0 Length of the cube in the y-direction.
- z_length
float, default: 1.0 Length of the cube in the z-direction.
- boundssequence[
float],optional Specify the bounding box of the cube. If given, all other size arguments are ignored.
(x_min, x_max, y_min, y_max, z_min, z_max).- points_dtype
str,optional Set the desired output point types. It must be either ‘float32’ or ‘float64’. Ignored unless
pyvista.core.config.Config.points_dtypeisNone, its default, or'preserve'.Added in version 0.49.
- point_dtype
str,optional Set the desired output point types.
Added in version 0.44.0.
Deprecated since version 0.49: Renamed to
points_dtype, matchingpyvista.core.config.Config.points_dtype.
- centersequence[
Examples#
Download Python source code | Download Jupyter notebook
Create a default CubeSource.
>>> import pyvista as pv
>>> source = pv.CubeSource()
>>> source.output.plot(show_edges=True, line_width=5)
Used In#
Docstring Examples
CubeFacesSource(1 use)
Inheritance#
Wraps vtkCubeSource.
Attributes#
Return or set the bounding box of the cube. |
|
Get the center in |
|
Get the output data object for a port on this algorithm. |
|
Return or set the dtype of the points this source generates. |
|
Return or set the dtype of the points this source generates. |
|
Get the x length along the cube in its specified direction. |
|
Get the y length along the cube in its specified direction. |
|
Get the z length along the cube in its specified direction. |