rewrite loop to avoid index correction

This commit is contained in:
Christoph Wintersteiger 2020-12-02 17:51:47 +01:00
parent cc85def275
commit 657360818d

View File

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