Extrusion geometry

Dear ngsolve users and developers,

I would like to use the extrusion geometry feature for modelling the windings of a coil. The old .geo file style works quite well. The same geometry in the pythonic way doesn’t. So my question is trivial: why not?

I would be happy for constructive ideas and or other ways to build geometrically windings.

Best regards,

Simon.

Attachment: extrusion.geo

Attachment: geometryExample.ipynb

Hi Simon,

Extrusion and Revolution are working from python as well as in the old geo-files.

There was one change: point indices are now 0-based.
The spline.AddPoint(x,y) returns the index of the new point. You can use that to be independent of Netgen-enumeration convention (see modified example)

There was another small but essential typo in the script (used extr instead of ext).

Best,
Joachim

Attachment: geometryExample.ipynb