Skip to content
Snippets Groups Projects
Commit 88f664bd authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix invalid memory access (n[2] is never allocated!)

parent 79819ec8
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ int MTriangle6::getNumEdgesRep(){ return 3 * CTX::instance()->mesh.numSubEdges;
static void _myGetEdgeRep(MTriangle *t, int num, double *x, double *y, double *z,
SVector3 *n, int numSubEdges)
{
n[0] = n[1] = n[2] = t->getFace(0).normal();
n[0] = n[1] = t->getFace(0).normal();
if (num < numSubEdges){
SPoint3 pnt1, pnt2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment