pyvista.SuperquadricSource

pyvista.SuperquadricSource#

class SuperquadricSource(
center: VectorLike[float] = (0.0, 0.0, 0.0),
scale: VectorLike[float] = (1.0, 1.0, 1.0),
size: float = 0.5,
theta_roundness: float = 1.0,
phi_roundness: float = 1.0,
theta_resolution: int = 16,
phi_resolution: int = 16,
toroidal: bool = False,
thickness: float = 0.3333333333333333,
)[source]#

Create superquadric source.

Added in version 0.44.

Parameters:
centersequence[float], default: (0.0, 0.0, 0.0)

Center of the superquadric in [x, y, z].

scalesequence[float], default: (1.0, 1.0, 1.0)

Scale factors of the superquadric in [x, y, z].

sizefloat, default: 0.5

Superquadric isotropic size.

theta_roundnessfloat, default: 1.0

Superquadric east/west roundness. Values range from 0 (rectangular) to 1 (circular) to higher orders.

phi_roundnessfloat, default: 1.0

Superquadric north/south roundness. Values range from 0 (rectangular) to 1 (circular) to higher orders.

theta_resolutionint, default: 16

Number of points in the longitude direction. Values are rounded to nearest multiple of 4.

phi_resolutionint, default: 16

Number of points in the latitude direction. Values are rounded to nearest multiple of 8.

toroidalbool, default: False

Whether or not the superquadric is toroidal (True) or ellipsoidal (False).

thicknessfloat, default: 0.3333333333

Superquadric ring thickness. Only applies if toroidal is set to True.

Methods

Attributes

SuperquadricSource.center

Center of the superquadric in [x, y, z].

SuperquadricSource.output

Get the output data object for a port on this algorithm.

SuperquadricSource.phi_resolution

Number of points in the latitude direction.

SuperquadricSource.phi_roundness

Superquadric north/south roundness.

SuperquadricSource.scale

Scale factors of the superquadric in [x, y, z].

SuperquadricSource.size

Superquadric isotropic size.

SuperquadricSource.theta_resolution

Number of points in the longitude direction.

SuperquadricSource.theta_roundness

Superquadric east/west roundness.

SuperquadricSource.thickness

Superquadric ring thickness.

SuperquadricSource.toroidal

Whether or not the superquadric is toroidal (True) or ellipsoidal (False).