mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
To keep paint through a cut or a mesh boolean, the part's mesh is saved with its paint, moved to where the part is, and the paint is transferred from it onto the new mesh. Brush paint splits a triangle into smaller ones, recorded against the order of its three vertices. Cut flipped the saved mesh of a mirrored part to turn it right side out, which swaps two vertices of every triangle, so each stroke was read back in the wrong place inside its triangles. The mesh boolean did not flip, so its saved mesh faced inward and the transfer, which only paints faces that point the same way, dropped every stroke. Move the saved mesh without reordering its vertices and mark a mirrored one as inside out. The transfer reads the paint as recorded and turns that mesh's normals around.
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: