mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
mesh default constructor
This commit is contained in:
parent
dade5551b5
commit
fc54444357
@ -94,7 +94,8 @@ void ExportNetgenMeshing()
|
||||
;
|
||||
|
||||
|
||||
bp::class_<Mesh,shared_ptr<Mesh>,boost::noncopyable>("Mesh")
|
||||
bp::class_<Mesh,shared_ptr<Mesh>,boost::noncopyable>("Mesh", bp::no_init)
|
||||
.def(bp::init<>("create empty mesh"))
|
||||
.def("__str__", &ToString<Mesh>)
|
||||
.def("Load", static_cast<void(Mesh::*)(const string & name)>(&Mesh::Load))
|
||||
.def("Save", static_cast<void(Mesh::*)(const string & name)const>(&Mesh::Save))
|
||||
@ -121,14 +122,17 @@ void ExportNetgenMeshing()
|
||||
{
|
||||
return self.AddPoint (Point3d(p));
|
||||
}))
|
||||
/*
|
||||
.def("__init__", bp::make_constructor
|
||||
(FunctionPointer ([]()
|
||||
{
|
||||
auto tmp = new Mesh();
|
||||
cout << "create new mesh" << endl;
|
||||
auto tmp = make_shared<Mesh>();
|
||||
return tmp;
|
||||
})),
|
||||
"create empty mesh"
|
||||
)
|
||||
*/
|
||||
;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user