Skip to content

Commit

Permalink
+ implement save() function in PointKernel, fix icon issue in mesh wo…
Browse files Browse the repository at this point in the history
…rkbench
  • Loading branch information
wwmayer committed Aug 6, 2014
1 parent 0c2d201 commit bd64ce3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Mesh/Gui/Command.cpp
Expand Up @@ -634,7 +634,7 @@ void CmdMeshVertexCurvatureInfo::activated(int iMsg)
Gui::View3DInventorViewer* viewer = view->getViewer();
viewer->setEditing(true);
viewer->setRedirectToSceneGraph(true);
viewer->setEditingCursor(QCursor(Gui::BitmapFactory().pixmap("mesh_pipette"),4,29));
viewer->setEditingCursor(QCursor(Gui::BitmapFactory().pixmapFromSvg("mesh_pipette",QSize(32,32)),4,29));
viewer->addEventCallback(SoEvent::getClassTypeId(),
MeshGui::ViewProviderMeshCurvature::curvatureInfoCallback);
}
Expand Down
9 changes: 6 additions & 3 deletions src/Mod/Points/App/Points.cpp
Expand Up @@ -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)
Expand All @@ -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,
Expand Down
29 changes: 0 additions & 29 deletions src/Mod/Sandbox/AppSandbox.sln

This file was deleted.

0 comments on commit bd64ce3

Please sign in to comment.