-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
GeometryBasics.Mesh incorrectly converts quads to triangles #207
Comments
As far as I'm concerned this can be closed if this point is fixed:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to convert quadrilateral faces
F
and their verticesV
to a mesh using:One correctly obtains a quadrilateral mesh description:
However an error occurs if the mesh only consists of a single quad face, i.e.
length(F)==1
, in this case it looks like that quad is instead interpreter as a triangle:A longer example and some context is given below.
Here is an example quadrilateral mesh description, in this case for a cube.
I am interested in visualizing such quadrilateral meshes using GLMakie and to use per face color data. Currently GLMakie requires looping over the faces to handle such "per face colors" (default is to use vertex color data instead).
The looping causes me to have to pass single faces to Geometry.Mesh which was showing the error. Note the besides being converted to triangles, which is unwanted, the quad is also not correctly converted to triangles as one can tell from this crossed/entangled look:
This is related to a bug I've posted on GLMakie, but I think it starts with this bug here.
Thanks a lot for your help!
The text was updated successfully, but these errors were encountered: