+ implement save() function in PointKernel, fix icon issue in mesh workbench

This commit is contained in:
wmayer
2014-08-06 17:39:15 +02:00
parent 0c2d201396
commit bd64ce3bb7
3 changed files with 7 additions and 33 deletions

View File

@@ -149,8 +149,8 @@ void PointKernel::RestoreDocFile(Base::Reader &reader)
void PointKernel::save(const char* file) const
{
//MeshCore::MeshOutput aWriter(_kernel);
//aWriter.SaveAny(file);
Base::ofstream out(file, std::ios::out);
save(out);
}
void PointKernel::load(const char* file)
@@ -160,7 +160,10 @@ void PointKernel::load(const char* file)
void PointKernel::save(std::ostream& out) const
{
//kernel.Write(out);
out << "# ASCII" << std::endl;
for (std::vector<value_type>::const_iterator it = _Points.begin(); it != _Points.end(); ++it) {
out << it->x << " " << it->y << " " << it->z << std::endl;
}
}
void PointKernel::getFaces(std::vector<Base::Vector3d> &Points,std::vector<Facet> &Topo,