internal unsafe PlaneBoundaryCollection(MLPlaneBoundaries planeBoundaries, Pose planePose)
        {
            m_Boundaries = NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray <MLPlaneBoundary>(
                planeBoundaries.boundaries,
                (int)planeBoundaries.boundaries_count,
                Allocator.None);

            m_Pose = planePose;
        }
        internal unsafe PlaneBoundaryCollection(MLPlaneBoundaries planeBoundaries, Pose planePose)
        {
            m_Boundaries = NativeArrayUnsafeUtility.ConvertExistingDataToNativeArray <MLPlaneBoundary>(
                planeBoundaries.boundaries,
                (int)planeBoundaries.boundaries_count,
                Allocator.None);

#if ENABLE_UNITY_COLLECTIONS_CHECK
            var safetyHandle = AtomicSafetyHandle.Create();
            NativeArrayUnsafeUtility.SetAtomicSafetyHandle(ref m_Boundaries, safetyHandle);
#endif

            m_Pose = planePose;
        }