You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OBJ file for the model shown has quadrilateral faces (see also 4 highlighted face entries for a section of the OBJ file shown on the left. However upon import it becomes available as a triangulation. Can this behaviour be fixed/avoided so the mesh is imported as is?
Thanks @ffreyer this seems to be a MeshIO point rather than GeometryBasics so we can close it. That fix with facetype works for pure quad faces. Like you say it doesn't for mixed meshes. I'll post on issue on that for MeshIO soon.
Activity
ffreyer commentedon May 14, 2025
I think you can do something like
load("mesh.obj
, facetype = QuadFace{Int})`.For mixed types https://github.com/JuliaIO/MeshIO.jl/blob/master/src/io/obj.jl would have to be changed. Currently it strictly types the faces array and converts every face to the target type. I'm not sure if this is important for performance
Kevin-Mattheus-Moerman commentedon May 14, 2025
Thanks @ffreyer this seems to be a MeshIO point rather than GeometryBasics so we can close it. That fix with
facetype
works for pure quad faces. Like you say it doesn't for mixed meshes. I'll post on issue on that for MeshIO soon.