Skip to content
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

Arrows with orientation (V3 0 0 (-1)) render incorrectly #21

Open
jfearnley opened this issue Apr 21, 2020 · 0 comments
Open

Arrows with orientation (V3 0 0 (-1)) render incorrectly #21

jfearnley opened this issue Apr 21, 2020 · 0 comments

Comments

@jfearnley
Copy link

Arrows with orientation (V3 0 0 (-1)) incorrectly render with orientation (V3 0 0 1)

The following code should produce six arrows, but only five are drawn.

import Vis
import Linear

arrows = VisObjects [ Arrow (1, 10) (V3 1    0    0   ) white
                    , Arrow (1, 10) (V3 0    1    0   ) white
                    , Arrow (1, 10) (V3 0    0    1   ) white
                    , Arrow (1, 10) (V3 (-1) 0    0   ) white
                    , Arrow (1, 10) (V3 0    (-1) 0   ) white
                    , Arrow (1, 10) (V3 0    0    (-1)) white
                    ]

main = display defaultOpts arrows

Really nice library otherwise! I think I'll be using this quite a bit in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant