Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UFrameIT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FrameIT
UFrameIT
Commits
f304380a
Commit
f304380a
authored
5 years ago
by
Richard Marcus
Browse files
Options
Downloads
Patches
Plain Diff
new facts, wip
parent
7b306c09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Assets/FactManager.cs
+6
-0
6 additions, 0 deletions
Assets/FactManager.cs
Assets/InteractionEngine/Fact.cs
+1
-0
1 addition, 0 deletions
Assets/InteractionEngine/Fact.cs
with
7 additions
and
0 deletions
Assets/FactManager.cs
+
6
−
0
View file @
f304380a
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Assets/InteractionEngine/Fact.cs
+
1
−
0
View file @
f304380a
...
...
@@ -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
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment