Could I pass a 'triangulation' class into mex?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 17 de Feb. de 2021
0 votos
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!