-
Notifications
You must be signed in to change notification settings - Fork 87
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
Smoothing option in viz function #535
Comments
We provide two coloring options in MeshViz.jl. If you pass a vector of
colors that has the same length of the vector of vertices you get
interpolation. If on the other hand the vector of colors has a length that
is equal to the number of elements you get sharp boundaries. Can you give
it a try?
Em qui., 22 de dez. de 2022 07:28, stla ***@***.***> escreveu:
… Hello,
I exposed my problem here
<https://discourse.julialang.org/t/meshviz-makie-is-smoothing-my-colors/91993>
.
In the given answer, the author uses the Makie.mesh! function to plot the
mesh, with the option interpolate=false. Is it possible to have such an
option with *MeshViz.jl*? I took a look at the code and it seems you use
Makie.meshscatter!, which does not have this option.
—
Reply to this email directly, view it on GitHub
<#535>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZQW3OVX7TT2TT557YXXQDWOQUNZANCNFSM6AAAAAATGR7BAY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yes, it works. Thanks. |
Can you also share the update on Discourse so that others learn about the
solution?
Em qui., 22 de dez. de 2022 07:49, stla ***@***.***> escreveu:
… Closed JuliaGeometry/Meshes.jl#535 <#535> as
completed.
—
Reply to this email directly, view it on GitHub
<#535>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZQW3NBQIH57V2TMKU5ANLWOQW4VANCNFSM6AAAAAATGR7BAY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Actually I still have the same problem: if I provide a color per face, the mesh is not smoothed. So I can't do something like this for example, with sharp colors but smoothed: https://youtu.be/vLkNQh3Sv8w |
What exactly is smoothed? I am trying to understand what exactly is the difference between the current output and the desired output. On Zulip we have a thread where I asked if you could share some screenshots of the same geometry with the same angle to compare the different results. |
Got it. Do you have a PR in mind here that could give this additional flexibility? I don't know how these normals play a role in OpenGL, but Makie probably has an option to use them or not. We just need to forward this option to the low-level Makie function in our recipe. |
I don't have a PR in mind. I didn't study MeshViz yet, and I'm not a familiar with Makie. But I believe we can give the normals in Makie and there's an |
@stla appreciate if you can take a look at the option you mentioned. |
Hello,
I exposed my problem here.
In the given answer, the author uses the
Makie.mesh!
function to plot the mesh, with the optioninterpolate=false
. Is it possible to have such an option with MeshViz.jl? I took a look at the code and it seems you useMakie.meshscatter!
, which does not have this option.The text was updated successfully, but these errors were encountered: