pyvista.Superquadric#
- Superquadric(
- 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,
超2次関数の作成
- パラメータ:
- centersequence[
float], default: (0.0, 0.0, 0.0) [x, y, z]における超2次関数の中心.- scalesequence[
float], default: (1.0, 1.0, 1.0) [x, y, z]における超2次関数のスケール係数.- size
float, default: 0.5 超2次関数の等方性サイズ.
- theta_roundness
float, default: 1.0 超2次関数の東西方向の丸み.値は0(長方形)から1(円形),さらに高次のものまであります.
- phi_roundness
float, default: 1.0 超2次関数の南北方向の丸み.値は0(長方形)から1(円形),さらに高次のものまであります.
- theta_resolution
int, default: 16 経度方向の点の数.数値は4の倍数になるように丸められます.
- phi_resolution
int, default: 16 緯度方向の点の数.数値は8の倍数になるように丸められます.
- toroidalbool, default:
False 超2次関数が環状体であるか (
True) ,楕円体であるか (False) .- thickness
float, default: 0.3333333333 超2次関数リングの厚さ.Toroidal が
Trueに設定されている場合にのみ適用されます.
- centersequence[
- 戻り値:
pyvista.PolyData超2次関数メッシュ.
参考
pyvista.ParametricSuperEllipsoidtoroidal が
Falseの場合,パラメトリック超2次関数です.pyvista.ParametricSuperToroidtoroidal が
Trueの場合,パラメトリック超2次関数です.
例
>>> import pyvista as pv >>> superquadric = pv.Superquadric( ... scale=(3.0, 1.0, 0.5), ... phi_roundness=0.1, ... theta_roundness=0.5, ... ) >>> superquadric.plot(show_edges=True)