Tag Info

New answers tagged

5

In Version 10 we have BoundaryDiscretizeGraphics and RegionMember to the rescue. So here we go: Reproducing the graphics: data = Flatten[Table[{x, y, z, x^2 + y^2 + z^2 + RandomReal[0.1]}, {x, -2, 2, 0.2}, {y, -2, 2, 0.2}, {z, -2, 2, 0.2}], 2]; (* Thanks to Taliesin Beynon for the tip *) plot = ListContourPlot3D[data, Contours -> {1}, Mesh -> ...


1

You are correct, but it's not necessary to expose the free_string method. Just delete the string you allocated in subsequent calls to get_string. Something like this … if (str!=NULL) { delete str; } str = new std::string("some string to return");



Top 50 recent answers are included