mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
rewrite loop to avoid index correction
This commit is contained in:
parent
cc85def275
commit
657360818d
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user