private void Update() { if (this.meshFilter != null) { meshFilter.mesh.Clear(); } GuideInfo guideInfo = TrackerManager.GetInstance().GetGuideInfo(); int featureCount = guideInfo.GetFeatureCount(); if (featureCount == 0) { return; } float[] featureBuffer = guideInfo.GetFeatureBuffer(); if (featureBuffer.Length > 0) { Vector3[] vertexVector3Array = convertFloatToVertex3(featureBuffer, featureCount); Generate(vertexVector3Array); } }
/// <summary> /// Get guide information of the found surface on SLAM after the FindSurface method has been called /// </summary> /// <returns>SurfaceMesh instance</returns> public GuideInfo GetGuideInfo() { if (guideInfo == null) { guideInfo = new GuideInfo(); } guideInfo.UpdateGuideInfo(); return(guideInfo); }