52 return std::visit(overloaded{ |
52 return std::visit(overloaded{ |
53 [](Colored<SubfileReference> ref) -> ModelElement { |
53 [](Colored<SubfileReference> ref) -> ModelElement { |
54 ref.inverted = not ref.inverted; |
54 ref.inverted = not ref.inverted; |
55 return ref; |
55 return ref; |
56 }, |
56 }, |
|
57 [](Colored<CircularPrimitive> circ) -> ModelElement { |
|
58 circ.inverted = not circ.inverted; |
|
59 return circ; |
|
60 }, |
57 [](Colored<Triangle> triangle) -> ModelElement { |
61 [](Colored<Triangle> triangle) -> ModelElement { |
58 std::swap(triangle.p1, triangle.p2); |
62 std::swap(triangle.p1, triangle.p2); |
59 return triangle; |
63 return triangle; |
60 }, |
64 }, |
61 [](Colored<Quadrilateral> quad) -> ModelElement { |
65 [](Colored<Quadrilateral> quad) -> ModelElement { |