-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NF: Adding actor for frustum, TEST: Adding uni tests for frustum actor #963
base: v2
Are you sure you want to change the base?
Conversation
TEST: Adding uni tests for square actor
Hi @ManishReddyR, you have some conflict that need to be fixed. I suppose you need to merge the branch v2 or rebase on branch v2. Thank you for the future update |
Hello @skoudoro Thank you |
Delete fury/wgsl/mesh2.wgsl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ManishReddyR,
Thank you for the update. Looks good overall, see below the last comments
colors : ndarray (N,3) or (N, 4) or tuple (3,) or tuple (4,), optional | ||
RGB or RGBA (for opacity) R, G, B and A should be at the range [0, 1]. | ||
scales : int or ndarray (N,3) or tuple (3,), optional | ||
The size of the box in each dimension. If a single value is provided, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frustum
instead of box
>>> scene = window.Scene() | ||
>>> centers = np.random.rand(5, 3) * 10 | ||
>>> colors = np.random.rand(5, 3) | ||
>>> square_actor = actor.square(centers=centers, colors=colors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frustum_actor
. instead
>>> centers = np.random.rand(5, 3) * 10 | ||
>>> colors = np.random.rand(5, 3) | ||
>>> square_actor = actor.square(centers=centers, colors=colors) | ||
>>> scene.add(square_actor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
npt.assert_array_almost_equal(mean_vertex, centers[0]) | ||
|
||
assert frustum_actor.prim_count == 1 | ||
scene.remove(frustum_actor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, add the snapshot test since it works now.
Tried to add actor and uni tests for frustum actor