Inheritance: MixedRealitySpatialAwarenessMeshObserverProfile
        /// <summary>
        /// Reads the settings from the configuration profile.
        /// </summary>
        private void ReadProfile()
        {
            SpatialObjectMeshObserverProfile profile = ConfigurationProfile as SpatialObjectMeshObserverProfile;

            if (profile == null)
            {
                return;
            }

            // SpatialObjectMeshObserver settings
            spatialMeshObject = profile.SpatialMeshObject;

            // IMixedRealitySpatialAwarenessObserver settings
            StartupBehavior      = profile.StartupBehavior;
            IsStationaryObserver = profile.IsStationaryObserver;
            ObservationExtents   = profile.ObservationExtents;
            ObserverVolumeType   = profile.ObserverVolumeType;
            UpdateInterval       = profile.UpdateInterval;

            // IMixedRealitySpatialAwarenessMeshObserver settings
            DisplayOption          = profile.DisplayOption;
            LevelOfDetail          = profile.LevelOfDetail;
            MeshPhysicsLayer       = profile.MeshPhysicsLayer;
            OcclusionMaterial      = profile.OcclusionMaterial;
            RecalculateNormals     = profile.RecalculateNormals;
            TrianglesPerCubicMeter = profile.TrianglesPerCubicMeter;
            VisibleMaterial        = profile.VisibleMaterial;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Reads the settings from the configuration profile.
        /// </summary>
        protected override void ReadProfile()
        {
            base.ReadProfile();

            SpatialObjectMeshObserverProfile profile = ConfigurationProfile as SpatialObjectMeshObserverProfile;
            if (profile == null) { return; }

            // SpatialObjectMeshObserver settings
            spatialMeshObject = profile.SpatialMeshObject;
        }