mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +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("__str__", &ToString<Mesh>)
|
||||||
.def("Load", static_cast<void(Mesh::*)(const string & name)>(&Mesh::Load))
|
.def("Load", static_cast<void(Mesh::*)(const string & name)>(&Mesh::Load))
|
||||||
.def("Save", static_cast<void(Mesh::*)(const string & name)const>(&Mesh::Save))
|
.def("Save", static_cast<void(Mesh::*)(const string & name)const>(&Mesh::Save))
|
||||||
@ -121,14 +122,17 @@ void ExportNetgenMeshing()
|
|||||||
{
|
{
|
||||||
return self.AddPoint (Point3d(p));
|
return self.AddPoint (Point3d(p));
|
||||||
}))
|
}))
|
||||||
|
/*
|
||||||
.def("__init__", bp::make_constructor
|
.def("__init__", bp::make_constructor
|
||||||
(FunctionPointer ([]()
|
(FunctionPointer ([]()
|
||||||
{
|
{
|
||||||
auto tmp = new Mesh();
|
cout << "create new mesh" << endl;
|
||||||
|
auto tmp = make_shared<Mesh>();
|
||||||
return tmp;
|
return tmp;
|
||||||
})),
|
})),
|
||||||
"create empty mesh"
|
"create empty mesh"
|
||||||
)
|
)
|
||||||
|
*/
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user