C# 클래스 TriangleNet.Tools.AdjacencyMatrix

The adjacency matrix of the mesh.
파일 보기 프로젝트 열기: RegrowthStudios/VoxelRTS 1 사용 예제들

공개 메소드들

메소드 설명
AdjacencyMatrix ( Mesh mesh ) : System
Bandwidth ( ) : int

Computes the bandwidth of an adjacency matrix.

비공개 메소드들

메소드 설명
AdjacencyCount ( Mesh mesh ) : int[]

Counts adjacencies in a triangulation.

This routine is called to count the adjacencies, so that the appropriate amount of memory can be set aside for storage when the adjacency structure is created. The triangulation is assumed to involve 3-node triangles. Two nodes are "adjacent" if they are both nodes in some triangle. Also, a node is considered to be adjacent to itself. Diagram: 3 s |\ i | \ d | \ e | \ side 1 | \ 2 | \ | \ 1-------2 side 3

AdjacencySet ( Mesh mesh, int rows ) : int[]

Sets adjacencies in a triangulation.

This routine can be used to create the compressed column storage for a linear triangle finite element discretization of Poisson's equation in two dimensions.

CreateHeap ( int a, int offset, int size ) : void

Reorders an array of integers into a descending heap.

A heap is an array A with the property that, for every index J, A[J] >= A[2*J+1] and A[J] >= A[2*J+2], (as long as the indices 2*J+1 and 2*J+2 are legal). Diagram: A(0) / \ A(1) A(2) / \ / \ A(3) A(4) A(5) A(6) / \ / \ A(7) A(8) A(9) A(10)

HeapSort ( int a, int offset, int size ) : void

ascending sorts an array of integers using heap sort.

메소드 상세

AdjacencyMatrix() 공개 메소드

public AdjacencyMatrix ( Mesh mesh ) : System
mesh Mesh
리턴 System

Bandwidth() 공개 메소드

Computes the bandwidth of an adjacency matrix.
public Bandwidth ( ) : int
리턴 int