Just trying to add the following lines to existing code
and I get an exception being thrown
Untitled.png
Can anyone help?
float* x = (float *)malloc(numPoints * sizeof(float));
float* y = (float *)malloc(numPoints * sizeof(float));
float* z = (float *)malloc(numPoints * sizeof(float));
....
float* y = (float *)malloc(numPoints * sizeof(float));
float* z = (float *)malloc(numPoints * sizeof(float));
....
PoTriangleMesh2D* mesh = new PoTriangleMesh2D;
mesh->setGeometry(numPoints, x, y);
// add a set of scalar values to this mesh
mesh->addValuesSet(0, z);
mesh->setGeometry(numPoints, x, y);
// add a set of scalar values to this mesh
mesh->addValuesSet(0, z);
and I get an exception being thrown
Untitled.png
Can anyone help?
Comment