docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlaneUtils

    Inheritance
    object
    PlaneUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.Data
    Assembly: Unity.MARS.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public static class PlaneUtils

    Methods

    GeneratePlaneWithBorders(Pose, List<Vector3>, List<Vector3>, List<Vector2>, List<Vector2>, List<int>, PlaneEdgeSettings)

    Declaration
    public static void GeneratePlaneWithBorders(Pose pose, List<Vector3> sourceVertices, List<Vector3> vertices, List<Vector2> textureCoordinates, List<Vector2> textureCoordinates2, List<int> indices, PlaneEdgeSettings settings)
    Parameters
    Type Name Description
    Pose pose
    List<Vector3> sourceVertices
    List<Vector3> vertices
    List<Vector2> textureCoordinates
    List<Vector2> textureCoordinates2
    List<int> indices
    PlaneEdgeSettings settings

    TriangulatePlaneFromVertices(in Pose, List<Vector3>, List<int>, List<Vector3>, List<Vector2>)

    Triangulates the polygon and tiles the UV data correctly from the polygon center. Sets normals to local up.

    Declaration
    public static void TriangulatePlaneFromVertices(in Pose pose, List<Vector3> vertices, List<int> indices, List<Vector3> normals, List<Vector2> texCoords)
    Parameters
    Type Name Description
    Pose pose

    Input Pose of the source plane

    List<Vector3> vertices

    Input Vertices of the polygon.

    List<int> indices

    Output Index buffer to fill for triangulation

    List<Vector3> normals

    Output for vertex normals

    List<Vector2> texCoords

    Output uv coordinates.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)