Skip to main content

MNETriangle

Namespace: MNELIB  ·  Library: MNE Library

#include <mne/mne_triangle.h>

class MNELIB::MNETriangle

Per-triangle geometric data for a cortical or BEM surface.

Stores vertex indices, edge vectors, normal, area, centroid and auxiliary unit vectors. Vertex pointers (r1/r2/r3) and the index pointer (vert) alias data owned by the parent surface and must not be freed.


Public Methods​

MNETriangle()​

Constructs an empty MNETriangle with zeroed geometry.


~MNETriangle()​

Default destructor (non-owning pointers are not freed).


compute_data()​

Compute derived geometry (edge vectors, normal, area, centroid, auxiliary unit vectors) from the current vertex positions.


Example​

No example of its own: Per-triangle cache (centroid, area, normal) filled by MNESurfaceOrVolume::add_triangle_data; read through MNEBemSurface/MNESourceSpaces.

It is exercised by:

src/examples/ex_mne_api/main.cpp
QFile bemFile(data + "/subjects/sample/bem/sample-5120-bem.fif");
MNEBem bem(bemFile); // one MNEBemSurface per BEM layer
const MNEBemSurface& innerSkull = bem[0];

From ex_mne_api.

Authors of this file​