From 83605aeb60a745b4e5d5bafc2ee56602ae647155 Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Sat, 23 Sep 2023 18:28:50 +0100 Subject: [PATCH] Improve example app --- Euclid.xcodeproj/project.pbxproj | 4 +++ .../xcshareddata/xcschemes/Example.xcscheme | 2 +- Example/EuclidMesh.swift | 26 +++++++++++++++++++ Example/RealityKitViewController.swift | 20 ++++---------- Example/SceneKitViewController.swift | 13 +--------- 5 files changed, 37 insertions(+), 28 deletions(-) create mode 100644 Example/EuclidMesh.swift diff --git a/Euclid.xcodeproj/project.pbxproj b/Euclid.xcodeproj/project.pbxproj index 64fd0f70..3b3ba877 100644 --- a/Euclid.xcodeproj/project.pbxproj +++ b/Euclid.xcodeproj/project.pbxproj @@ -12,6 +12,7 @@ 010A633B2A955BE9000E3306 /* MeshExportTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 010A633A2A955BE9000E3306 /* MeshExportTests.swift */; }; 0112D5C928EE29BB00A1C085 /* Euclid+RealityKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0112D5C828EE29BB00A1C085 /* Euclid+RealityKit.swift */; }; 0125478027AFD53900C442C3 /* MeshShapeTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0125477F27AFD53900C442C3 /* MeshShapeTests.swift */; }; + 0128EEBB2ABA607A00E60976 /* EuclidMesh.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0128EEBA2ABA607A00E60976 /* EuclidMesh.swift */; }; 013312DD21CA532A00626F1B /* PlaneTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 013312DC21CA532A00626F1B /* PlaneTests.swift */; }; 013499932902FB5900CED6BE /* Euclid+SIMD.swift in Sources */ = {isa = PBXBuildFile; fileRef = 013499922902FB5900CED6BE /* Euclid+SIMD.swift */; }; 0134999729043ACC00CED6BE /* RealityKitViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0134999629043ACC00CED6BE /* RealityKitViewController.swift */; }; @@ -112,6 +113,7 @@ 010A633A2A955BE9000E3306 /* MeshExportTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeshExportTests.swift; sourceTree = ""; }; 0112D5C828EE29BB00A1C085 /* Euclid+RealityKit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Euclid+RealityKit.swift"; sourceTree = ""; }; 0125477F27AFD53900C442C3 /* MeshShapeTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeshShapeTests.swift; sourceTree = ""; }; + 0128EEBA2ABA607A00E60976 /* EuclidMesh.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EuclidMesh.swift; sourceTree = ""; }; 013312DC21CA532A00626F1B /* PlaneTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlaneTests.swift; sourceTree = ""; }; 013499922902FB5900CED6BE /* Euclid+SIMD.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Euclid+SIMD.swift"; sourceTree = ""; }; 0134999629043ACC00CED6BE /* RealityKitViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RealityKitViewController.swift; sourceTree = ""; }; @@ -312,6 +314,7 @@ isa = PBXGroup; children = ( 016FABEC21C078E400AF60DC /* AppDelegate.swift */, + 0128EEBA2ABA607A00E60976 /* EuclidMesh.swift */, 016FABF021C078E400AF60DC /* SceneKitViewController.swift */, 0134999629043ACC00CED6BE /* RealityKitViewController.swift */, 016FABF221C078E400AF60DC /* Main.storyboard */, @@ -582,6 +585,7 @@ files = ( 016FABF121C078E400AF60DC /* SceneKitViewController.swift in Sources */, 0134999729043ACC00CED6BE /* RealityKitViewController.swift in Sources */, + 0128EEBB2ABA607A00E60976 /* EuclidMesh.swift in Sources */, 016FABED21C078E400AF60DC /* AppDelegate.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/Euclid.xcodeproj/xcshareddata/xcschemes/Example.xcscheme b/Euclid.xcodeproj/xcshareddata/xcschemes/Example.xcscheme index 4e3e0940..483cd90e 100644 --- a/Euclid.xcodeproj/xcshareddata/xcschemes/Example.xcscheme +++ b/Euclid.xcodeproj/xcshareddata/xcschemes/Example.xcscheme @@ -41,7 +41,7 @@