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

[BUG] mesh3d fails for a simple mesh #5051

Open
pgeipi10 opened this issue Mar 9, 2025 · 0 comments
Open

[BUG] mesh3d fails for a simple mesh #5051

pgeipi10 opened this issue Mar 9, 2025 · 0 comments
Labels

Comments

@pgeipi10
Copy link

pgeipi10 commented Mar 9, 2025

using Plots, TriplotRecipes

p = Float64[
    -1.0   1.0  1.0  -1.0   0.0  0.0  -1.0  0.0  1.0
    -1.0  -1.0  1.0   1.0  -1.0  0.0   0.0  1.0  0.0
]

t = Int32[
    1  2  4  5  3  4  2  8
    5  6  7  6  8  6  9  6
    7  5  6  7  9  8  6  9
]

x, y = p[1,:], p[2,:]
z = x.^2 + y.^2 .- 1

display(plot(x, y, z, seriestype=:mesh3d, faces=t'.- 1, color=:lightblue))

Causes error:

ERROR: ArgumentError: Unsupported `:connections` type Nothing for seriestype=mesh3d

Sometimes the error does not appear, but then the plot is not correct

@pgeipi10 pgeipi10 added the bug label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant