remake the position handling on the C++ side
This commit is contained in:
@@ -138,23 +138,12 @@ unsigned int PropertyFemMesh::getMemSize (void) const
|
||||
|
||||
void PropertyFemMesh::Save (Base::Writer &writer) const
|
||||
{
|
||||
if (!writer.isForceXML()) {
|
||||
//See SaveDocFile(), RestoreDocFile()
|
||||
writer.Stream() << writer.ind() << "<FemMesh file=\""
|
||||
<< writer.addFile("FemMesh.unv", this)
|
||||
<< "\"/>" << std::endl;
|
||||
}
|
||||
_FemMesh->Save(writer);
|
||||
}
|
||||
|
||||
void PropertyFemMesh::Restore(Base::XMLReader &reader)
|
||||
{
|
||||
reader.readElement("FemMesh");
|
||||
std::string file (reader.getAttribute("file") );
|
||||
|
||||
if (!file.empty()) {
|
||||
// initate a file read
|
||||
reader.addFile(file.c_str(),this);
|
||||
}
|
||||
_FemMesh->Restore(reader);
|
||||
}
|
||||
|
||||
void PropertyFemMesh::SaveDocFile (Base::Writer &writer) const
|
||||
|
||||
Reference in New Issue
Block a user