pyvista_js.examples.CubeMap#

class pyvista_js.examples.CubeMap(posx: str, negx: str, posy: str, negy: str, posz: str, negz: str)#

ベースクラス: object

Cubemap texture holding six face image URLs.

パラメータ:
  • posx (str) -- URL of the positive-X face image.

  • negx (str) -- URL of the negative-X face image.

  • posy (str) -- URL of the positive-Y face image.

  • negy (str) -- URL of the negative-Y face image.

  • posz (str) -- URL of the positive-Z face image.

  • negz (str) -- URL of the negative-Z face image.

サンプル

>>> from pyvista_js import examples
>>> cubemap = examples.download_sky_box_cube_map()
>>> type(cubemap)
<class 'pyvista_js.examples.CubeMap'>
__init__(posx: str, negx: str, posy: str, negy: str, posz: str, negz: str) None#

Initialize a cubemap with six face URLs.

Methods

__init__(posx, negx, posy, negy, posz, negz)

Initialize a cubemap with six face URLs.

to_skybox()

Return self for API compatibility with PyVista.

Attributes

face_urls

Return face URLs in the order [+X, -X, +Y, -Y, +Z, -Z].

property face_urls: list[str]#

Return face URLs in the order [+X, -X, +Y, -Y, +Z, -Z].

to_skybox() CubeMap#

Return self for API compatibility with PyVista.

戻り値:

This cubemap instance.

戻り値の型:

CubeMap

サンプル

>>> from pyvista_js import examples
>>> cubemap = examples.download_sky_box_cube_map()
>>> skybox = cubemap.to_skybox()