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

Problem for mesh3d intensity #324

Closed
ZenanH opened this issue May 10, 2020 · 1 comment
Closed

Problem for mesh3d intensity #324

ZenanH opened this issue May 10, 2020 · 1 comment

Comments

@ZenanH
Copy link

ZenanH commented May 10, 2020

I'm using PlotlyJS.jl to draw my model and I chose to use mesh3d() for my task. The model is composed of tetrahedral elements, so i_1, j_1, k_1 represent the serial number of one of the triangular faces. The code reads as follows:

using PlotlyJS

trace = mesh3d(x = [...],
               y = [...],
               z = [...],
               i = [i_1, i_2, ...],
               j = [j_1, i_2, ...],
               k = [k_1, k_2, ...])

layout = Layout(...)

plot(trace, layout)

1

I'm not sure if there's a problem with the red area being displayed in the picture. After that, I added something about intensity:

using PlotlyJS

trace = mesh3d(x = [...],
               y = [...],
               z = [...],
               i = [i_1, i_2, ...],
               j = [j_1, i_2, ...],
               k = [k_1, k_2, ...],
               intensity = abs.(result[:,3]),
               intensitymode = "vertex",
               colorscale = "RdBu")

layout = Layout(...)

plot(trace, layout)

2

The same problem can be seen in the red area. It may change with perspective:

1

But I think maybe it should be like the picture below:

3

Is there anything I can do? I'm not sure what's wrong. 😅

@sglyon
Copy link
Member

sglyon commented May 11, 2020

Hi @ZenanH thanks for posting.

I'll be honest here -- I am not an expert in 3d rendering/plotting. I believe I've never even used the mesh3d method myself!

Sorry about that!

You may have better luck on the plotly discussion forum: https://community.plotly.com/

I'm going to close here as I don't believe it is an issue with this library. If I turn out to be wrong about that and there is something to fix here please feel free to re-open.

@sglyon sglyon closed this as completed May 11, 2020
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

2 participants