makefile, mesh shared ptr

This commit is contained in:
Joachim Schoeberl 2014-09-26 10:10:16 +00:00
parent 908ac2bf0b
commit 1437009867
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ endif
libgeom2d_la_SOURCES = genmesh2d.cpp geom2dmesh.cpp geometry2d.cpp
libgeom2d_la_SOURCES = genmesh2d.cpp geom2dmesh.cpp geometry2d.cpp python_geom2d.cpp
libgeom2d_la_LIBADD = $(top_builddir)/libsrc/meshing/libmesh.la
libgeom2dvis_la_SOURCES = geom2dpkg.cpp vsgeom2d.cpp

View File

@ -240,9 +240,9 @@ void ExportGeom2d()
}))
.def("GenerateMesh", FunctionPointer([](SplineGeometry2d &self, MeshingParameters & mparam)
{
Mesh * mesh = NULL;
shared_ptr<Mesh> mesh;
self.GenerateMesh(mesh, mparam, 0, 0);
return shared_ptr<Mesh>(mesh);
return mesh;
}))
;