Skip to content
Snippets Groups Projects
Commit d1f8375f authored by Max Orok's avatar Max Orok
Browse files

Implement addPoint for non-geo scripts

parent 3f7f3b7e
No related branches found
No related tags found
No related merge requests found
...@@ -445,7 +445,11 @@ void scriptAddPoint(const std::string &fileName, const std::string &x, ...@@ -445,7 +445,11 @@ void scriptAddPoint(const std::string &fileName, const std::string &x,
sstream << "};"; sstream << "};";
} }
else { else {
// TODO std::string addPointStr = "gmsh/model/" + currentFactory + "/addPoint";
std::ostringstream args;
args << x << ", " << y << ", " << z;
if(lc.size()) args << ", " << lc;
sstream << api(addPointStr, args.str(), lang);
} }
scriptAddCommand(sstream.str(), fileName, lang); scriptAddCommand(sstream.str(), fileName, lang);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment