Could I pass a 'triangulation' class into mex?
Mostra commenti meno recenti
Hi,
I am trying to use mexcuda to accelerate some code with triangle mesh. I would like to use 'triangulation' class variable as input. But I don't know how to get the matrix under field "Points" or "ConnectivityList". Could any one give me a brief sample? Like below
#define DT prhs[0]
void mexFunction(int nlhs, mxArray * plhs[], int nrhs, const mxArray * prhs[])
{
mxArray *pt = DT.Points;
mxArray *con = DT.ConnectivityList;
}
I know I could use DT.Points as a matrix input. I just want to know more about other data classes input into mex. Thank you.
Risposta accettata
Più risposte (1)
Categorie
Scopri di più su Write C Functions Callable from MATLAB (MEX Files) in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!