WLT documentation has moved.

We are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the Core WLT section of the dot net API explorer and related pages. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Interface ITriangulator

    Very simple interface for triangulator, to avoid building complex dependencies.

    Namespace: Microsoft.MixedReality.WorldLocking.Core.Triangulator
    Assembly: cs.temp.dll.dll
    Syntax
    public interface ITriangulator

    Methods

    Add(Vector3[])

    Add vertices.

    Declaration
    bool Add(Vector3[] vertices)
    Parameters
    Type Name Description
    Vector3[] vertices

    The vertices to add.

    Returns
    Type Description
    Boolean

    True on success.

    Clear()

    Clear out all vertices added so far.

    Declaration
    void Clear()

    Find(Vector3)

    Find the interpolant for the given query position.

    Declaration
    Interpolant Find(Vector3 pos)
    Parameters
    Type Name Description
    Vector3 pos

    The query positon.

    Returns
    Type Description
    Interpolant

    An interpolant if found, else null.

    Remarks

    Note that one or more weights may be zero, but otherwise all indices returned will be valid. But while the data behind a vertex with weight zero may be referenced (as the index is valid), it is otherwise meaningless. The return value of null only happens if no vertices have been added to be interpolated.

    SetBounds(Vector3, Vector3)

    Set the bounds of vertices to be triangulated. All vertices entered in Add() should be inside the quad formed by these bounds.

    Declaration
    void SetBounds(Vector3 minPos, Vector3 maxPos)
    Parameters
    Type Name Description
    Vector3 minPos

    The minimum coordinates of the bounds.

    Vector3 maxPos

    The maximum coordinates of the bounds.

    Remarks

    The vertical coordinate Y is ignored. Note that queries outsde the bounds are okay, only all vertices must be contained.

    In This Article
    Back to top Generated by DocFX