Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ARMobileService"/> class.
 /// </summary>
 protected ARMobileService()
 {
     this.trackPosition          = true;
     this.planeDetection         = PlaneDetectionType.None;
     this.lightEstimationEnabled = false;
     this.pointCloudEnabled      = false;
     this.TrackingState          = ARTrackingState.NotAvailable;
     this.anchorsById            = new ConcurrentDictionary <Guid, ARMobileAnchor>();
 }
        /// <inheritdoc />
        protected override void DefaultValues()
        {
            base.DefaultValues();

            this.trackPosition          = true;
            this.planeDetection         = PlaneDetectionType.Horizontal;
            this.pointCloudEnabled      = false;
            this.worldAlignment         = ARMobileWorldAlignment.Gravity;
            this.lightEstimationEnabled = true;
            this.AutoStart = true;
        }
 /// <summary>
 /// Converts a <see cref="PlaneDetectionType"/> into a <see cref="ARConfig.PlaneFindingMode"/>.
 /// </summary>
 /// <param name="planeType">The plane detection type from ARMobile</param>
 /// <param name="planeFindingMode">The plane finding mode from ARCore</param>
 public static void ToPlaneFindingMode(this PlaneDetectionType planeType, out ARConfig.PlaneFindingMode planeFindingMode)
 {
     if (planeType == PlaneDetectionType.None)
     {
         planeFindingMode = ARConfig.PlaneFindingMode.Disabled;
     }
     else
     {
         planeFindingMode = ARConfig.PlaneFindingMode.Horizontal;
     }
 }
Пример #4
0
 /// <summary>
 /// Converts an <see cref="PlaneDetectionType"/> into a <see cref="ARPlaneDetection"/>.
 /// </summary>
 /// <param name="planeDetection">The plane detection type value to be converted</param>
 /// <returns>Returns an <see cref="ARPlaneDetection"/></returns>
 internal static ARPlaneDetection ToARKit(this PlaneDetectionType planeDetection)
 {
     return((ARPlaneDetection)planeDetection);
 }