Merge branch 'fixscalemesh' into 'master'

rewrite loop to avoid index correction

See merge request jschoeberl/netgen!355
This commit is contained in:
Joachim Schöberl 2020-12-04 13:48:29 +00:00
commit 64c1e5c2a2

View File

@ -1136,8 +1136,8 @@ project_boundaries : Optional[str] = None
.def ("Scale", [](Mesh & self, double factor) .def ("Scale", [](Mesh & self, double factor)
{ {
for(auto i = 0; i<self.GetNP();i++) for(auto & pnt : self.Points())
self.Point(i).Scale(factor); pnt.Scale(factor);
}) })
.def ("Copy", [](Mesh & self) .def ("Copy", [](Mesh & self)
{ {