mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
Merge branch 'fixscalemesh' into 'master'
rewrite loop to avoid index correction See merge request jschoeberl/netgen!355
This commit is contained in:
commit
64c1e5c2a2
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user