Skip to content

Commit 135fa45

Browse files
author
Jared Bienz
committed
Removed toolkit preview and examples because of compile issues. Added new direction indicator. Fixed bug with double cancellations when adding anchors.
1 parent edc44e9 commit 135fa45

File tree

11 files changed

+390
-301
lines changed

11 files changed

+390
-301
lines changed

SpatialAlignment-Unity/Assembly-CSharp-Editor.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@
138138
<Compile Include="Assets\HoloToolkit\UX\Scripts\Collections\Editor\CollectionEditor.cs" />
139139
<Compile Include="Assets\HoloToolkit\UX\Scripts\Editor\CompoundButtonSaveInterceptor.cs" />
140140
<Compile Include="Assets\HoloToolkit\UX\Scripts\Editor\KeyboardInputFieldEditor.cs" />
141-
<Compile Include="Assets\HoloToolkit-Examples\Medical\Editor\VolumeInformationEditor.cs" />
142-
<Compile Include="Assets\HoloToolkit-Preview\SpectatorView\Scripts\SpatialSync\MarkerGeneration3D\Editor\MarkerGeneration3DEditor.cs" />
143-
<Compile Include="Assets\HoloToolkit-Preview\SpectatorView\Scripts\Utilities\Editor\PlatformSwitcherEditor.cs" />
144-
<Compile Include="Assets\HoloToolkit-Preview\SpectatorView\UnityARKitPlugin\Plugins\iOS\UnityARKit\Editor\UnityARBuildPostprocessor.cs" />
145141
<Reference Include="Unity.TextMeshPro.Editor">
146142
<HintPath>C:/Users/jbienz/Code/JBienzMS/SpatialAlignment/SpatialAlignment-Unity/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
147143
</Reference>
@@ -415,9 +411,6 @@
415411
<Reference Include="Newtonsoft.Json">
416412
<HintPath>C:/Users/jbienz/Code/JBienzMS/SpatialAlignment/SpatialAlignment-Unity/Assets/HoloToolkit/Utilities/Scripts/GLTF/Plugins/JsonNet/Newtonsoft.Json.dll</HintPath>
417413
</Reference>
418-
<Reference Include="QRCodesTrackerPlugin.Placeholder">
419-
<HintPath>C:/Users/jbienz/Code/JBienzMS/SpatialAlignment/SpatialAlignment-Unity/Assets/HoloToolkit-Preview/QRTracker/Plugins/QRCodesTrackerPlugin.Placeholder.dll</HintPath>
420-
</Reference>
421414
<Reference Include="UnityEditor.Advertisements">
422415
<HintPath>C:/Users/jbienz/Code/JBienzMS/SpatialAlignment/SpatialAlignment-Unity/Library/PackageCache/[email protected]/Editor/UnityEditor.Advertisements.dll</HintPath>
423416
</Reference>

SpatialAlignment-Unity/Assembly-CSharp.csproj

Lines changed: 0 additions & 271 deletions
Large diffs are not rendered by default.

SpatialAlignment-Unity/Assets/SpatialAlignment-Examples/Refinement/Scenes/SA-RefinementBuilding.unity

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ GameObject:
466466
type: 3}
467467
m_PrefabInstance: {fileID: 1190320660}
468468
m_PrefabAsset: {fileID: 0}
469-
--- !u!64 &722041393
469+
--- !u!64 &722041396
470470
MeshCollider:
471471
m_ObjectHideFlags: 0
472472
m_CorrespondingSourceObject: {fileID: 0}
@@ -571,6 +571,80 @@ MeshFilter:
571571
m_PrefabAsset: {fileID: 0}
572572
m_GameObject: {fileID: 992500263}
573573
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
574+
--- !u!1001 &1009152664
575+
PrefabInstance:
576+
m_ObjectHideFlags: 0
577+
serializedVersion: 2
578+
m_Modification:
579+
m_TransformParent: {fileID: 0}
580+
m_Modifications:
581+
- target: {fileID: 3882863017087187430, guid: 8e43969e520e5d149b6ca084446340d7,
582+
type: 3}
583+
propertyPath: m_Name
584+
value: RefinementDirection
585+
objectReference: {fileID: 0}
586+
- target: {fileID: 3882863017087187430, guid: 8e43969e520e5d149b6ca084446340d7,
587+
type: 3}
588+
propertyPath: m_IsActive
589+
value: 0
590+
objectReference: {fileID: 0}
591+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
592+
type: 3}
593+
propertyPath: m_LocalPosition.x
594+
value: 0
595+
objectReference: {fileID: 0}
596+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
597+
type: 3}
598+
propertyPath: m_LocalPosition.y
599+
value: 0
600+
objectReference: {fileID: 0}
601+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
602+
type: 3}
603+
propertyPath: m_LocalPosition.z
604+
value: 0
605+
objectReference: {fileID: 0}
606+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
607+
type: 3}
608+
propertyPath: m_LocalRotation.x
609+
value: 0
610+
objectReference: {fileID: 0}
611+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
612+
type: 3}
613+
propertyPath: m_LocalRotation.y
614+
value: -0
615+
objectReference: {fileID: 0}
616+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
617+
type: 3}
618+
propertyPath: m_LocalRotation.z
619+
value: -0
620+
objectReference: {fileID: 0}
621+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
622+
type: 3}
623+
propertyPath: m_LocalRotation.w
624+
value: 1
625+
objectReference: {fileID: 0}
626+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
627+
type: 3}
628+
propertyPath: m_RootOrder
629+
value: 8
630+
objectReference: {fileID: 0}
631+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
632+
type: 3}
633+
propertyPath: m_LocalEulerAnglesHint.x
634+
value: 0
635+
objectReference: {fileID: 0}
636+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
637+
type: 3}
638+
propertyPath: m_LocalEulerAnglesHint.y
639+
value: 0
640+
objectReference: {fileID: 0}
641+
- target: {fileID: 3882863017087215046, guid: 8e43969e520e5d149b6ca084446340d7,
642+
type: 3}
643+
propertyPath: m_LocalEulerAnglesHint.z
644+
value: 0
645+
objectReference: {fileID: 0}
646+
m_RemovedComponents: []
647+
m_SourcePrefab: {fileID: 100100000, guid: 8e43969e520e5d149b6ca084446340d7, type: 3}
574648
--- !u!1 &1034952781
575649
GameObject:
576650
m_ObjectHideFlags: 0

SpatialAlignment-Unity/Assets/SpatialAlignment-Examples/Refinement/Scripts/RefinementExampleManager.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ private enum RefinementExampleMode
5656
{
5757
None,
5858
AddAnchor,
59+
AddAnchorCancel,
5960
EditingAnchor,
6061
}
6162

@@ -402,8 +403,14 @@ public void CancelAddAnchor()
402403
return;
403404
}
404405

405-
// Cancel refinement of the large scale model
406-
largeScaleRefinement.CancelRefinement();
406+
// Now canceling
407+
mode = RefinementExampleMode.AddAnchorCancel;
408+
409+
// Cancel refinement of the large scale model if in progress
410+
if (largeScaleRefinement.IsRefining)
411+
{
412+
largeScaleRefinement.CancelRefinement();
413+
}
407414

408415
// Unsubscribe from anchor events
409416
UnsubscribeAnchor(newAnchor);

SpatialAlignment-Unity/Assets/HoloToolkit-Examples.meta renamed to SpatialAlignment-Unity/Assets/SpatialAlignment/Refinement/Models.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Blender MTL File: 'Direction.blend'
2+
# Material Count: 1
3+
4+
newmtl None
5+
Ns 0
6+
Ka 0.000000 0.000000 0.000000
7+
Kd 0.8 0.8 0.8
8+
Ks 0.8 0.8 0.8
9+
d 1
10+
illum 2

SpatialAlignment-Unity/Assets/HoloToolkit-Preview.meta renamed to SpatialAlignment-Unity/Assets/SpatialAlignment/Refinement/Models/Direction.mtl.meta

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Blender v2.79 (sub 0) OBJ File: 'Direction.blend'
2+
# www.blender.org
3+
mtllib Direction.mtl
4+
g Direction_Indicator
5+
v 0.000000 0.000000 -0.010000
6+
v 0.000000 0.040000 -0.010000
7+
v 0.003827 0.000000 -0.009239
8+
v 0.003827 0.040000 -0.009239
9+
v 0.007071 0.000000 -0.007071
10+
v 0.007071 0.040000 -0.007071
11+
v 0.009239 0.000000 -0.003827
12+
v 0.009239 0.040000 -0.003827
13+
v 0.010000 0.000000 0.000000
14+
v 0.010000 0.040000 0.000000
15+
v 0.009239 0.000000 0.003827
16+
v 0.009239 0.040000 0.003827
17+
v 0.007071 0.000000 0.007071
18+
v 0.007071 0.040000 0.007071
19+
v 0.003827 0.000000 0.009239
20+
v 0.003827 0.040000 0.009239
21+
v 0.000000 0.000000 0.010000
22+
v 0.000000 0.040000 0.010000
23+
v -0.003827 0.000000 0.009239
24+
v -0.003827 0.040000 0.009239
25+
v -0.007071 0.000000 0.007071
26+
v -0.007071 0.040000 0.007071
27+
v -0.009239 0.000000 0.003827
28+
v -0.009239 0.040000 0.003827
29+
v -0.010000 0.000000 -0.000000
30+
v -0.010000 0.040000 -0.000000
31+
v -0.009239 0.000000 -0.003827
32+
v -0.009239 0.040000 -0.003827
33+
v -0.007071 0.000000 -0.007071
34+
v -0.007071 0.040000 -0.007071
35+
v -0.003827 0.000000 -0.009239
36+
v -0.003827 0.040000 -0.009239
37+
v 0.000000 0.040000 -0.025000
38+
v 0.000000 0.080000 0.000000
39+
v 0.009567 0.040000 -0.023097
40+
v 0.017678 0.040000 -0.017678
41+
v 0.023097 0.040000 -0.009567
42+
v 0.025000 0.040000 0.000000
43+
v 0.023097 0.040000 0.009567
44+
v 0.017678 0.040000 0.017678
45+
v 0.009567 0.040000 0.023097
46+
v 0.000000 0.040000 0.025000
47+
v -0.009567 0.040000 0.023097
48+
v -0.017678 0.040000 0.017678
49+
v -0.023097 0.040000 0.009567
50+
v -0.025000 0.040000 -0.000000
51+
v -0.023097 0.040000 -0.009567
52+
v -0.017678 0.040000 -0.017678
53+
v -0.009567 0.040000 -0.023097
54+
vn 0.0000 -0.6657 -0.7462
55+
vn 0.0000 0.6657 -0.7462
56+
vn 0.2855 0.6657 -0.6894
57+
vn 0.2855 -0.6657 -0.6894
58+
vn 0.5276 0.6657 -0.5276
59+
vn 0.5276 -0.6657 -0.5276
60+
vn 0.6894 0.6657 -0.2855
61+
vn 0.6894 -0.6657 -0.2855
62+
vn 0.7462 0.6657 0.0000
63+
vn 0.7462 -0.6657 0.0000
64+
vn 0.6894 0.6657 0.2855
65+
vn 0.6894 -0.6657 0.2855
66+
vn 0.5276 0.6657 0.5276
67+
vn 0.5276 -0.6657 0.5276
68+
vn 0.2855 0.6657 0.6894
69+
vn 0.2855 -0.6657 0.6894
70+
vn 0.0000 0.6657 0.7462
71+
vn 0.0000 -0.6657 0.7462
72+
vn -0.2855 0.6657 0.6894
73+
vn -0.2855 -0.6657 0.6894
74+
vn -0.5276 0.6657 0.5276
75+
vn -0.5276 -0.6657 0.5276
76+
vn -0.6894 0.6657 0.2855
77+
vn -0.6894 -0.6657 0.2855
78+
vn -0.7462 0.6657 0.0000
79+
vn -0.7462 -0.6657 0.0000
80+
vn -0.6894 0.6657 -0.2855
81+
vn -0.6894 -0.6657 -0.2855
82+
vn -0.5276 0.6657 -0.5276
83+
vn -0.5276 -0.6657 -0.5276
84+
vn -0.2855 0.6657 -0.6894
85+
vn -0.2855 -0.6657 -0.6894
86+
vn 0.0000 -0.4438 -0.8961
87+
vn 0.0000 1.0000 0.0000
88+
vn 0.3429 -0.4438 -0.8279
89+
vn 0.6336 -0.4438 -0.6336
90+
vn 0.8279 -0.4438 -0.3429
91+
vn 0.8961 -0.4438 0.0000
92+
vn 0.8279 -0.4438 0.3429
93+
vn 0.6336 -0.4438 0.6336
94+
vn 0.3429 -0.4438 0.8279
95+
vn 0.0000 -0.4438 0.8961
96+
vn -0.3429 -0.4438 0.8279
97+
vn -0.6336 -0.4438 0.6336
98+
vn -0.8279 -0.4438 0.3429
99+
vn -0.8961 -0.4438 0.0000
100+
vn -0.8279 -0.4438 -0.3429
101+
vn -0.6336 -0.4438 -0.6336
102+
vn -0.3429 -0.4438 -0.8279
103+
usemtl None
104+
s 1
105+
f 1//1 2//2 4//3 3//4
106+
f 3//4 4//3 6//5 5//6
107+
f 5//6 6//5 8//7 7//8
108+
f 7//8 8//7 10//9 9//10
109+
f 9//10 10//9 12//11 11//12
110+
f 11//12 12//11 14//13 13//14
111+
f 13//14 14//13 16//15 15//16
112+
f 15//16 16//15 18//17 17//18
113+
f 17//18 18//17 20//19 19//20
114+
f 19//20 20//19 22//21 21//22
115+
f 21//22 22//21 24//23 23//24
116+
f 23//24 24//23 26//25 25//26
117+
f 25//26 26//25 28//27 27//28
118+
f 27//28 28//27 30//29 29//30
119+
f 4//3 2//2 32//31 30//29 28//27 26//25 24//23 22//21 20//19 18//17 16//15 14//13 12//11 10//9 8//7 6//5
120+
f 29//30 30//29 32//31 31//32
121+
f 31//32 32//31 2//2 1//1
122+
f 1//1 3//4 5//6 7//8 9//10 11//12 13//14 15//16 17//18 19//20 21//22 23//24 25//26 27//28 29//30 31//32
123+
f 33//33 34//34 35//35
124+
f 35//35 34//34 36//36
125+
f 36//36 34//34 37//37
126+
f 37//37 34//34 38//38
127+
f 38//38 34//34 39//39
128+
f 39//39 34//34 40//40
129+
f 40//40 34//34 41//41
130+
f 41//41 34//34 42//42
131+
f 42//42 34//34 43//43
132+
f 43//43 34//34 44//44
133+
f 44//44 34//34 45//45
134+
f 45//45 34//34 46//46
135+
f 46//46 34//34 47//47
136+
f 47//47 34//34 48//48
137+
f 48//48 34//34 49//49
138+
f 49//49 34//34 33//33
139+
f 33//33 35//35 36//36 37//37 38//38 39//39 40//40 41//41 42//42 43//43 44//44 45//45 46//46 47//47 48//48 49//49

0 commit comments

Comments
 (0)