From 55cd4a39b8353e9b924b50cdb01e027b815fb429 Mon Sep 17 00:00:00 2001
From: unknown <john.schihada@hotmail.com>
Date: Fri, 20 Nov 2020 02:16:20 +0100
Subject: [PATCH] Adjusted Labels of Distance- and Angle-Facts

---
 Assets/Scripts/InteractionEngine/Fact.cs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Assets/Scripts/InteractionEngine/Fact.cs b/Assets/Scripts/InteractionEngine/Fact.cs
index b98e94aa..c7244961 100644
--- a/Assets/Scripts/InteractionEngine/Fact.cs
+++ b/Assets/Scripts/InteractionEngine/Fact.cs
@@ -146,6 +146,11 @@ public LineFact(int i, int pid1, int pid2)
         this.Pid2 = pid2;
         PointFact pf1 = CommunicationEvents.Facts.Find((x => x.Id == pid1)) as PointFact;
         PointFact pf2 = CommunicationEvents.Facts.Find((x => x.Id == pid2)) as PointFact;
+
+        //Label is currently set to Fact.setId
+        //Set Label to StringConcatenation of Points
+        this.Label = pf1.Label + pf2.Label;
+
         string p1URI = pf1.backendURI;
         string p2URI = pf2.backendURI;
         float v = (pf1.Point - pf2.Point).magnitude;
@@ -274,6 +279,11 @@ public AngleFact(int i, int pid1, int pid2, int pid3)
         PointFact pf1 = CommunicationEvents.Facts.Find((x => x.Id == pid1)) as PointFact;
         PointFact pf2 = CommunicationEvents.Facts.Find((x => x.Id == pid2)) as PointFact;
         PointFact pf3 = CommunicationEvents.Facts.Find((x => x.Id == pid3)) as PointFact;
+
+        //Label is currently set to Fact.setId
+        //Set Label to StringConcatenation of Points
+        this.Label = "∠" + pf1.Label + pf2.Label + pf3.Label;
+
         string p1URI = pf1.backendURI;
         string p2URI = pf2.backendURI;
         string p3URI = pf3.backendURI;
-- 
GitLab