src/ldrawalgorithm.cpp

changeset 333
07e65a4c6611
parent 264
76a025db4948
child 336
e07425ac5834
--- a/src/ldrawalgorithm.cpp	Mon Jul 04 15:37:22 2022 +0300
+++ b/src/ldrawalgorithm.cpp	Mon Jul 04 19:53:13 2022 +0300
@@ -20,6 +20,7 @@
 std::vector<ModelAction> ldraw::makeUnofficial(const Model* model)
 {
 	std::vector<ModelAction> actions;
+#if 0
 	if (model->size() >= 4) {
 		if (const Comment* comment = std::get_if<Comment>(&(*model)[3])) {
 			const QString& body = comment->text;
@@ -41,28 +42,6 @@
 			}
 		}
 	}
+#endif
 	return actions;
 }
-
-ModelElement inverted(const ModelElement& element)
-{
-	return std::visit(overloaded{
-		[](Colored<SubfileReference> ref) -> ModelElement {
-			ref.inverted = not ref.inverted;
-			return ref;
-		},
-		[](Colored<CircularPrimitive> circ) -> ModelElement {
-			circ.inverted = not circ.inverted;
-			return circ;
-		},
-		[](Colored<Triangle> triangle) -> ModelElement {
-			std::swap(triangle.p1, triangle.p2);
-			return triangle;
-		},
-		[](Colored<Quadrilateral> quad) -> ModelElement {
-			std::swap(quad.p2, quad.p4);
-			return quad;
-		},
-		[](const ModelElement& x) { return x; }
-	}, element);
-}

mercurial