quads icon indicating copy to clipboard operation
quads copied to clipboard

Add subdivision option for quads -> triangles

Open rreusser opened this issue 9 years ago • 2 comments

When I convert quads -> triangles, I sometimes split quads into four triangles instead of two since that removes the choice of which direction to split (which tends to cause particularly ugly artifacts due to the anisotropy). Do you think that would be a reasonable option? Could just use the average of the four corners.

rreusser avatar Feb 03 '17 01:02 rreusser

Sample implementation here which also accepts a set of attributes it will triangulate alongside. It basically appends the midpoints of the quads to the positions and reworks it into tris. This seems like a separate function since it creates separate geometry (should potentially also reorder for memory locality).

rreusser avatar Feb 03 '17 22:02 rreusser

Works for me, I should probably rename my usage of quads with mesh like you have here. It's much clearer.

gregtatum avatar Feb 04 '17 17:02 gregtatum