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

nat::wire3d is plotting polygons when there should only be triangles - not a problem with rgl::wire3d #511

Open
Jsalas424 opened this issue Jan 22, 2023 · 0 comments

Comments

@Jsalas424
Copy link

Jsalas424 commented Jan 22, 2023

Hello,

I am using wire3d to plot a mesh3d object with the plotly backend. I noticed that there are polygons on my mesh. The data is only triangles and when I check with RGL, I also only see triangles:

RGL:

rgl::wire3d(mesh)

image

nat:

options(nat.plotengine = 'plotly')
wire3d(mesh,
       add = FALSE
)

image

What I do notice is that I scroll around the RGL plot, sometimes vertices seem to disappear and it looks like a polygon exists where there isn't one due to the lighting effects.

Mesh Code: https://pastebin.com/raw/xmUtHhtt

@Jsalas424 Jsalas424 changed the title wire3d is plotting polygons when there should only be triangles - doesn't show up with rg::wire3d wire3d is plotting polygons when there should only be triangles - doesn't show up with rgl::wire3d Jan 22, 2023
@Jsalas424 Jsalas424 changed the title wire3d is plotting polygons when there should only be triangles - doesn't show up with rgl::wire3d wire3d is plotting polygons when there should only be triangles - not a problem with rgl::wire3d Jan 22, 2023
@Jsalas424 Jsalas424 changed the title wire3d is plotting polygons when there should only be triangles - not a problem with rgl::wire3d nat::wire3d is plotting polygons when there should only be triangles - not a problem with rgl::wire3d Jan 22, 2023
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