Skip to content

Commit

Permalink
Use vectors instead of raw pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlchristian Eckert committed Sep 14, 2015
1 parent 4f8248c commit 459d61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/write_to_vtk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ int writeToVtk(const Mesh& mesh,
const float runtime,
const std::string vtkType){

const double* vertexCoordinates = mesh.points.toArray();
const unsigned* triangles = mesh.trianglePointIndices.toArray();
const std::vector<double> vertexCoordinates = mesh.points.toVector();
const std::vector<unsigned> triangles = mesh.trianglePointIndices.toVector();
const float thicknessOfLevel = mesh.thickness;
const unsigned verticesPerLevel = mesh.numberOfPoints;
const unsigned trianglesPerLevel= mesh.numberOfTriangles;
Expand Down

0 comments on commit 459d61a

Please sign in to comment.