I have included my class in the main.cpp file but I get this error.
error C2065: 'coordinate': undeclared identifier
error C2065: 'connectivity': undeclared identifier
I can't figure out why. I appreciate your help in advance,
coordinate and connectivity are local to the functions in which they are defined.
They no longer exist when those functions end.
And you wouldn't be able to access them from outside the funcion anyway.
Presumably you mean them to be members of the class?
I can't comprehend your code and have no idea what it's up to so I'm not sure what's reasonable here. For instance I don't see where you're assigning any memory to m_data. And I assume this is just a placeholder: return gx1, gy1, gx2, gy2, gx3, gy3;