Class AdjacencyMatrix | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class AdjacencyMatrix

    The adjacency matrix of the mesh.

    Inheritance
    System.Object
    AdjacencyMatrix
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.U2D.TriangleNet.Tools
    Syntax
    public class AdjacencyMatrix

    Constructors

    AdjacencyMatrix(Int32[], Int32[])

    Declaration
    public AdjacencyMatrix(int[] pcol, int[] irow)
    Parameters
    Type Name Description
    System.Int32[] pcol
    System.Int32[] irow

    AdjacencyMatrix(Mesh)

    Declaration
    public AdjacencyMatrix(Mesh mesh)
    Parameters
    Type Name Description
    Mesh mesh

    Fields

    N

    Gets the number of columns (nodes of the mesh).

    Declaration
    public readonly int N
    Field Value
    Type Description
    System.Int32

    Properties

    ColumnPointers

    Gets the column pointers.

    Declaration
    public int[] ColumnPointers { get; }
    Property Value
    Type Description
    System.Int32[]

    RowIndices

    Gets the row indices.

    Declaration
    public int[] RowIndices { get; }
    Property Value
    Type Description
    System.Int32[]

    Methods

    Bandwidth()

    Computes the bandwidth of an adjacency matrix.

    Declaration
    public int Bandwidth()
    Returns
    Type Description
    System.Int32

    Bandwidth of the adjacency matrix.

    SortIndices()

    Declaration
    public void SortIndices()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023