mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class SpatialMeshExporter

    Utility to export current Spatial Mesh Data to OBJ file

    Inheritance
    Object
    SpatialMeshExporter
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.SpatialAwareness.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public static class SpatialMeshExporter

    Methods

    Save(IMixedRealitySpatialAwarenessMeshObserver, String, Boolean)

    Save spatial mesh data for given observer to folder path provided

    Declaration
    public static Task Save(IMixedRealitySpatialAwarenessMeshObserver meshObserver, string folderPath, bool consolidate = true)
    Parameters
    Type Name Description
    IMixedRealitySpatialAwarenessMeshObserver meshObserver

    Observer to target for requests of spatial mesh data

    String folderPath

    Folder path to pull all OBJ files

    Boolean consolidate

    if true, merge all mesh data from observer into one OBJ file. If false, create OBJ file per mesh object

    Returns
    Type Description
    Task
    Remarks

    Accessing GameObject/Mesh data will occur as Coroutine on Unity Main thread. May impact performance. If folder path does not exist, throws exception

    Save(IMixedRealitySpatialAwarenessMeshObserver, String, Boolean)

    Save spatial mesh data for given observer to folder path provided

    Declaration
    public static Task Save(IMixedRealitySpatialAwarenessMeshObserver meshObserver, string folderPath, bool consolidate = true)
    Parameters
    Type Name Description
    IMixedRealitySpatialAwarenessMeshObserver meshObserver

    Observer to target for requests of spatial mesh data

    String folderPath

    Folder path to pull all OBJ files

    Boolean consolidate

    if true, merge all mesh data from observer into one OBJ file. If false, create OBJ file per mesh object

    Returns
    Type Description
    Task
    Remarks

    Accessing GameObject/Mesh data will occur as Coroutine on Unity Main thread. May impact performance. If folder path does not exist, throws exception

    Save(String, Boolean)

    Save spatial mesh data for all observers under the current Spatial Awareness system

    Declaration
    public static Task Save(string folderPath, bool consolidate = true)
    Parameters
    Type Name Description
    String folderPath

    Absolute folder path to place OBJ files

    Boolean consolidate

    If true, attempts to consolidate all meshes per Observer into one OBJ file. If false, creates an OBJ file per mesh object on each observer

    Returns
    Type Description
    Task
    Remarks

    Accessing GameObject/Mesh data will occur as Coroutine on Unity Main thread. May impact performance. If folder path does not exist, throws exception

    Save(String, Boolean)

    Save spatial mesh data for all observers under the current Spatial Awareness system

    Declaration
    public static Task Save(string folderPath, bool consolidate = true)
    Parameters
    Type Name Description
    String folderPath

    Absolute folder path to place OBJ files

    Boolean consolidate

    If true, attempts to consolidate all meshes per Observer into one OBJ file. If false, creates an OBJ file per mesh object on each observer

    Returns
    Type Description
    Task
    Remarks

    Accessing GameObject/Mesh data will occur as Coroutine on Unity Main thread. May impact performance. If folder path does not exist, throws exception

    In This Article
    • Methods
      • Save(IMixedRealitySpatialAwarenessMeshObserver, String, Boolean)
      • Save(IMixedRealitySpatialAwarenessMeshObserver, String, Boolean)
      • Save(String, Boolean)
      • Save(String, Boolean)
    Back to top Generated by DocFX