Closed lemoer closed 1 year ago
I can confirm this. It is only partially a bug, more like a conceptional problem. The "Update()" method is numerically expensive and thus cannot and should not be executed every time "IsInside" is called. openEMS always updates everything before calling "IsInside" and a user should do it too.
I will think about a flag like (is_uptodate) and if it is not set during"IsInside" an Update is called once...
Well I think only the Polyhedron has this problem as its data structures are very complex...
this should be fixed, but I found more issues like this, e.g. with GetDimension on all types of primitives... we will see.
This should be fixed...
Thank you for the fixes!
Hi,
I just discovered, that
polyhedron.IsInside(coord)
returns False even if thecoord
is inside the polyhedron.Only after calling
polyhedron.Update()
, the function works as expected.I think, this may be a bug.
Script to reproduce:
Result: