FIND INDEX OF VERTEX

Finds the index of a vertex in a simplicial partition

Contents

Function of MOBY-DIC TOOLBOX.

Description

Consider a uniform simplicial partition in a normalizad domain, in which the coordinates of the vertices are integer numbers 0, 1, ... Ni. Given a vertex of such a partition, this function returns its index. The vertices are indicized in this way:

7 --- 8 --- 9
|     |     |
|     |     |
4 --- 5 --- 6
|     |     |
|     |     |
1 --- 2 --- 3

The extension to domains with more dimension is straightforward. The function employs mex file findIndexOfVertex.cpp.

Syntax

I = findIndexOfVertex(V,Nx)

Nx is an array containing the number of subdivisions per dimension. V is the vertex in the normalized domain; I is the index of vertex V.

Acknowledgements

Contributors:

Copyright is with: