Skip to content

Commit

Permalink
Fixed vars names.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-agour committed Jul 5, 2022
1 parent f1ec0a5 commit d940fe6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions fury/tests/test_actors.py
Expand Up @@ -1495,9 +1495,9 @@ def test_marker_actor(interactive=False):

def test_actors_primitives_count():
centers = np.array([[1, 1, 1], [2, 2, 2]])
box_actor = actor.box(centers)
npt.assert_equal(get_primitives_count_from_actor(box_actor), len(centers))
box_actor = actor.sphere(centers, (1, 0, 0))
npt.assert_equal(get_primitives_count_from_actor(box_actor), len(centers))
box_actor = actor.sphere(centers, (1, 0, 0), use_primitive=True)
npt.assert_equal(get_primitives_count_from_actor(box_actor), len(centers))
sphere_actor = actor.box(centers)
npt.assert_equal(get_primitives_count_from_actor(sphere_actor), len(centers))
sphere_actor = actor.sphere(centers, (1, 0, 0))
npt.assert_equal(get_primitives_count_from_actor(sphere_actor), len(centers))
prim_sphere_actor = actor.sphere(centers, (1, 0, 0), use_primitive=True)
npt.assert_equal(get_primitives_count_from_actor(prim_sphere_actor), len(centers))
2 changes: 1 addition & 1 deletion fury/utils.py
Expand Up @@ -719,7 +719,7 @@ def get_actor_from_primitive(vertices, triangles, colors=None,
culling of polygons based on orientation of normal with respect to
camera. If backface culling is True, polygons facing away from camera
are not drawn. Default: True
prim_count: int
prim_count: int, optional
primitives count to be associated with the actor
Returns
Expand Down

0 comments on commit d940fe6

Please sign in to comment.