Files
OrcaSlicer/tests
Ian Bassi 7aa23c6928 Keep brush paint in place when a cut or boolean moves a mirrored part
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.
2026-11-30 17:03:38 -03:00
..
2025-12-08 22:42:11 +08:00

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:

  • AGENTS.md is the same guidance in short form, and is what an agent working under tests/ picks up.
  • CATCH2.md is the Catch2 reference, including the mistakes that break a test at runtime.