Skip to content
Snippets Groups Projects
Commit f304380a authored by Richard Marcus's avatar Richard Marcus
Browse files

new facts, wip

parent 7b306c09
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,7 @@ void Update()
}
//TODO: change the return find....
PointFact AddPointFact(RaycastHit hit, int id)
{
Facts.Insert(id, new PointFact(id, hit.point, hit.normal));
......@@ -55,6 +56,11 @@ RayFact AddRayFact(int pid1, int pid2, int id)
{
Facts.Insert(id, new RayFact(id, pid1, pid2));
var oPid = GetFirstEmptyID();
Facts.Insert(oPid, new RayFact(id, pid1, pid2));
oPid = GetFirstEmptyID();
Facts.Insert(oPid, new RayFact(id, pid1, pid2));
return Facts.Find(x => x.Id == id) as RayFact;
}
......
......@@ -73,6 +73,7 @@ public PointFact(int i, float a, float b, float c, string uri)
public class OpenLineFact : Fact
{
//R: this is called RayFact for now (see below), feel free to change
//an infinite Line through the Points Pid1 and Pid2
public int Pid1, Pid2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment