Announcement

Collapse
No announcement yet.

Help with crash for PoTriangleMesh2D

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with crash for PoTriangleMesh2D

    Just trying to add the following lines to existing code
    float* x = (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);


    and I get an exception being thrown

    Untitled.png

    Can anyone help?

  • #2
    I found out - it was just a problem with my data

    Comment

    Working...
    X