Skip to content

Commit

Permalink
https version of videos, removed implementation note from docstring, …
Browse files Browse the repository at this point in the history
…tuple optional, uint8 constraint removal, note about 6 actors
  • Loading branch information
robinroy03 committed May 1, 2024
1 parent faf40bf commit b26842a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
12 changes: 6 additions & 6 deletions docs/examples/viz_play_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@
# There'll be a significant delay if your internet connectivity is poor,
# use local directory paths for fast rendering.
sources = [
'http://commondatastorage.googleapis.com/gtv-videos-bucket/'
'https://commondatastorage.googleapis.com/gtv-videos-bucket/'
+ 'sample/BigBuckBunny.mp4',
'http://commondatastorage.googleapis.com/gtv-videos-bucket/'
'https://commondatastorage.googleapis.com/gtv-videos-bucket/'
+ 'sample/BigBuckBunny.mp4',
'http://commondatastorage.googleapis.com/gtv-videos-bucket/'
'https://commondatastorage.googleapis.com/gtv-videos-bucket/'
+ 'sample/BigBuckBunny.mp4',
'http://commondatastorage.googleapis.com/gtv-videos-bucket/'
'https://commondatastorage.googleapis.com/gtv-videos-bucket/'
+ 'sample/BigBuckBunny.mp4',
'http://commondatastorage.googleapis.com/gtv-videos-bucket/'
'https://commondatastorage.googleapis.com/gtv-videos-bucket/'
+ 'sample/BigBuckBunny.mp4',
'http://commondatastorage.googleapis.com/gtv-videos-bucket/'
'https://commondatastorage.googleapis.com/gtv-videos-bucket/'
+ 'sample/BigBuckBunny.mp4'
]

Expand Down
22 changes: 9 additions & 13 deletions fury/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3964,19 +3964,19 @@ def texture_on_cube(negx, negy, negz, posx, posy, posz, centers=(0, 0, 0)):
Parameters
----------
negx : ndarray
Input 2D RGB or RGBA array. Dtype should be uint8.
Input 2D RGB or RGBA array.
negy : ndarray
Input 2D RGB or RGBA array. Dtype should be uint8.
Input 2D RGB or RGBA array.
negz : ndarray
Input 2D RGB or RGBA array. Dtype should be uint8.
Input 2D RGB or RGBA array.
posx : ndarray
Input 2D RGB or RGBA array. Dtype should be uint8.
Input 2D RGB or RGBA array.
posy : ndarray
Input 2D RGB or RGBA array. Dtype should be uint8.
Input 2D RGB or RGBA array.
posz : ndarray
Input 2D RGB or RGBA array. Dtype should be uint8.
centers : tuple (3,)
The X, Y and Z coordinate of the cube, optional.
Input 2D RGB or RGBA array.
centers : tuple (3,), optional
The X, Y and Z coordinate of the cube.
|----|
| +Y |
Expand All @@ -3989,11 +3989,7 @@ def texture_on_cube(negx, negy, negz, posx, posy, posz, centers=(0, 0, 0)):
Returns
-------
actors : list[Actor]
A list of Actor objects, one for each face of the cube, in order.
Implementation
--------------
Check docs/examples/viz_play_cube.py
A list of 6 Actor objects, one for each face of the cube, in order.
"""
plane_objects = [PlaneSource() for _ in range(6)]
Expand Down

0 comments on commit b26842a

Please sign in to comment.