MNE-CPP 0.1.9
A Framework for Electrophysiology
Loading...
Searching...
No Matches
mne_triangle.h
Go to the documentation of this file.
1//=============================================================================================================
37#ifndef MNETRIANGLE_H
38#define MNETRIANGLE_H
39
40//=============================================================================================================
41// INCLUDES
42//=============================================================================================================
43
44#include "../mne_global.h"
45
46//=============================================================================================================
47// EIGEN INCLUDES
48//=============================================================================================================
49
50#include <Eigen/Core>
51
52//=============================================================================================================
53// QT INCLUDES
54//=============================================================================================================
55
56#include <QSharedPointer>
57
58//=============================================================================================================
59// DEFINE NAMESPACE MNELIB
60//=============================================================================================================
61
62namespace MNELIB
63{
64
65//=============================================================================================================
66// FORWARD DECLARATIONS
67//=============================================================================================================
68
69//=============================================================================================================
76{
77public:
78 typedef QSharedPointer<MneTriangle> SPtr;
79 typedef QSharedPointer<const MneTriangle> ConstSPtr;
81 //=========================================================================================================
86
87 //=========================================================================================================
93
94 //============================= mne_add_geometry_info.c =============================
95
96 static void add_triangle_data(MneTriangle* tri);
97
98public:
99 int *vert; /* Triangle vertices (pointers to the itris member of the associated mneSurface) */
100 float *r1,*r2,*r3; /* Triangle vertex locations (pointers to the rr member of the associated mneSurface) */
101 float r12[3],r13[3]; /* Vectors along the sides */
102 float nn[3]; /* Normal vector */
103 float area; /* Area */
104 float cent[3]; /* Centroid */
105 float ex[3],ey[3]; /* Other unit vectors (used by BEM calculations) */
106
107// ### OLD STRUCT ###
108//typedef struct {
109// int *vert; /* Triangle vertices (pointers to the itris member of the associated mneSurface) */
110// float *r1,*r2,*r3; /* Triangle vertex locations (pointers to the rr member of the associated mneSurface) */
111// float r12[3],r13[3]; /* Vectors along the sides */
112// float nn[3]; /* Normal vector */
113// float area; /* Area */
114// float cent[3]; /* Centroid */
115// float ex[3],ey[3]; /* Other unit vectors (used by BEM calculations) */
116//} *mneTriangle,mneTriangleRec; /* Triangle data */
117};
118
119//=============================================================================================================
120// INLINE DEFINITIONS
121//=============================================================================================================
122} // NAMESPACE MNELIB
123
124#endif // MNETRIANGLE_H
#define MNESHARED_EXPORT
Definition mne_global.h:56
Triangle data.
QSharedPointer< MneTriangle > SPtr
QSharedPointer< const MneTriangle > ConstSPtr